skip to main content
Corticon Server: Integration & Deployment Guide : Corticon API reference : REST Management API : Summary of REST methods for management of Decision Services : API ListDecisionServices
 

Try Corticon Now
API ListDecisionServices
<base>/decisionService/list
HTTP GET
Returns a list of Decision Services deployed on the server. The resulting payload is enclosed in the response's body in JSON object form. The JSON object structure is as follows:
{
"decisionServices" :
[
{
"name" : <Decision Service Name>,
"majorVersion" : <Decision Service Major Version Number>,
"minorVersion" : <Decision Service Minor Version Number>,
},
...
]
}
An example of a response is:
{
"decisionServices" :
[
{
"name" : "OrderProcessing",
"majorVersion" : "1",
"minorVersion" : "10",
},
{
"name" : "OrderProcessing",
"majorVersion" : "1",
"minorVersion" : "11",
},
{
"name" : "Cargo",
"majorVersion" : "1",
"minorVersion" : "0",
}
]
}
In the case where no Decision Services are deployed on the server, the payload contains an empty JSON array and the response code is set to 204:
{
"decisionServices" : []
}
Success status codes:
*200 OK
*204 No Content (the list is empty)
Error status codes:
*500 Internal Server Error