Template
Template class for customer projects. Mock data is supported.
URL
/cnbs/v1/template
Method(s)
POST | GET
Overview
High level summary of required operations:
- Mock data support
- Mock data can be setup via configuration
Parameters
Optional
- Mock data (mock_data)
- Mock data type (mock_type)
- space … no mock data
- W … mock data generation on WAS
- C … mock data generation on Core
- Mock Number (mock_number)
- key for customzing table
Example POST
JSON Payload:
{ "mock_data": { "mock_type": "C", "mock_number": 1 } }
cURL
curl -X POST "https://<<your.server.here>>/cnbs/v1/user/change_password?sap-client=800&sap-language=EN&apiid=CNBSMV01R" -H "accept: application/json" -H "cnbssysid: gPuM1VyY1dxlTE2MEs2yajJUkX3/4+2Pw1alRw4BOtI=" -H "authorization: Basic Y2tvZXNzbHQ6dGVzdDAx" -H "Content-Type: application/json" -d "{ \"current_password\": \"Initial01\", \"new_password\": \"Zufght#$\"}"
Response
- Status (status)
- Message Type (message_type)
- SAP Message Type.
- Errors:
- E = Error
- A = Abort
- X = Exception
- Others:
- S = Success
- W = Warning
- I = Information
- Message Identifier (message_identification)
- SAP Message ID.
- Message Number (message_number)
- SAP Message Number.
- Message Line (message_line_string)
- SAP Message Text.
Example Response
JSON: {
"data": { "gen": [ { "name": "VBELN", "value": "123" }, { "name": "MATNR", "value": "7890" } ] }, "status": { "message_type": "S", "message_identification": "/CNBS/X_API", "message_number": 10, "message_line_string": "Request successfully processed", "json": "" }
} </code>