Get Information about a Decision Service by Snapshot Name

get

/ic/api/process/v1/dmn/spaces/{spaceId}/decision-models/{decisionModelName}/versions/{decisionModelVersion}/definition/decision-services/{decisionServiceName}

Gets the input argument and output returned from a decision service. The attribute interpretation in the response body contains JSON schema of the input arguments and return output. The snapshot name is identified by {decisionModelVersion}.

Request

Path Parameters
Header Parameters
  • Authorization header MUST be set to type Bearer and an access token must be provided i.e. 'Bearer '
    Default Value: Bearer XXXXX.XXXXX.XXXXX
Back to Top

Response

Supported Media Types

200 Response

Successful Response
Body ()
Root Schema : DecisionService
Match All
Show Source
Nested Schema : RestObject
Type: object
Show Source
Nested Schema : DecisionService-allOf[1]
Type: object
Show Source
Nested Schema : RestCollection
Match All
Show Source
Nested Schema : RestCollection-allOf[1]
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Example Response (application/json)
{
    "@class":".DecisionService",
    "interpretation":{
        "$class":"function",
        "arguments":{
            "$schema":"http://json-schema.org/draft-04/schema#",
            "type":"object",
            "properties":{
                "InputInt":{
                    "$schema":"http://json-schema.org/draft-04/schema#",
                    "type":"number"
                }
            }
        },
        "returns":{
            "$schema":"http://json-schema.org/draft-04/schema#",
            "type":"object",
            "properties":{
                "interpretation":{
                    "$schema":"http://json-schema.org/draft-04/schema#",
                    "type":"number"
                },
                "problems":{
                    "$schema":"http://json-schema.org/draft-04/schema#",
                    "type":"array",
                    "items":{
                        "type":"object",
                        "properties":{
                            "message":{
                                "$schema":"http://json-schema.org/draft-04/schema#",
                                "type":"string"
                            }
                        }
                    }
                }
            }
        }
    },
    "outputDecisions":{
        "@class":".DecisionService$DecisionReferenceCollection",
        "items":[
            {
                "@class":".DecisionService$DecisionReference",
                "name":"Plus One"
            }
        ]
    },
    "inputData":{
        "@class":".DecisionService$InputDataReferenceCollection",
        "items":[
            {
                "@class":".DecisionService$InputDataReference",
                "name":"InputInt"
            }
        ]
    },
    "inputDecisions":{
        "@class":".DecisionService$DecisionReferenceCollection"
    },
    "createdBy":"jstein",
    "createdTime":"2017/02/02T11:11:49",
    "lastChangedBy":"jstein",
    "lastChangedTime":"2017/02/02T11:12:44",
    "name":"Plus One Service"
}

401 Response

Unauthorized

403 Response

Forbidden (Expired or invalid token)

404 Response

Not Found

500 Response

Internal Server Error
Back to Top