Accessing APIs and services with a POST request
To call any API with its full input, send a
POST HTTP request to
/invoke/apiName.
You can also call any custom service with a POST request to
/executeFlow/serviceName.
The following example shows a request to
getOrderList that uses
POST:POST http://host:port/contextRoot/restapi/invoke/getOrderListWhile invoking a service through REST URL, pass the root node as X-XAPI-Tag in
the HTTP header of the request.
Sample REST URL for CustomService.
POST
URL: https://<ip>:<port>/smcfs/restapi/executeFlow/CustomService
Body:
{
"OrderHeaderKey": "2021040907275224529"
}
Headers:
Content-Type: application/json
X-XAPI-Tag: Order