HTTP methods
The HTTP methods of the REST API provide the operations
that are available on Rule Execution Server artifacts.
The REST API for ruleset execution supports the GET and POST methods.
- You use the GET method to generate a sample XML or JSON payload or to retrieve WADL or OpenAPI
for a specified ruleset. For example:
GET https://vhost005.bpm.ibmcloud.com/odm/dev/DecisionService/rest/v1/miniloan/1.0/miniloan/1.0/xml
GET https://vhost005.bpm.ibmcloud.com/odm/dev/DecisionService/rest/v1/miniloan/1.0/miniloan/1.0/json
GET https://vhost005.bpm.ibmcloud.com/odm/dev/DecisionService/rest/v1/miniloanruleapp/1.0/miniloanrules/1.0/wadl
GET https://vhost005.bpm.ibmcloud.com/odm/dev/DecisionService/rest/v1/miniloanruleapp/1.0/miniloanrules/1.0/openapi
- You use the POST method to create a request for execution of a ruleset or to validate an XML
payload. The request body contains the XML or JSON payload. For example:
POST https://vhost005.bpm.ibmcloud.com/odm/dev/DecisionService/rest/v1/miniloan/1.0/miniloan/1.0
POST https://vhost005.bpm.ibmcloud.com/odm/dev/DecisionService/rest/v1/miniloan/1.0/miniloan/1.0/validate