List Decision Services of an Application Version
get
/decision/api/v1/applications/{appId}/versions/{versionId}/decision-services
Retrieves all the decision services of an application version. The API function returns a 200 Successful operation response only if the application version is activated, else the API returns a 404 status Resource Not Found response.
Request
Path Parameters
-
appId(required): string
Name of the application
-
versionId(required): string
Application version identifier
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : DecisionServices
Title:
DecisionServices
Match All
Show Source
-
object
Links
Title:
Links
-
object
DecisionServices-allOf[1]
Nested Schema : Link
Type:
object
Defines Link
Show Source
-
code: integer
Minimum Value:
100
Maximum Value:600
-
href(required): string
-
hreflang: string
-
length: integer
(int32)
-
mediaType: string
-
message: string
-
rel(required): string
-
title: string
-
type: string
Nested Schema : DecisionService
Title:
DecisionService
Match All
Show Source
-
object
Links
Title:
Links
-
object
DecisionService-allOf[1]
400 Response
Bad request
401 Response
Unauthorized
404 Response
Resource not found
500 Response
Internal error
Examples
Example: Get all decision services of X version of Invoicing application
The following example shows how to get decision service details of a application by submitting a GET request on the REST resource using cURL. For more information about cURL, see cURL Access. For more information about endpoint URL structure, see Send Requests.
curl -X 'GET' \
'https://oracle.com/decision/api/v1/applications/Invoicing/versions/X/decision-services'
\ -H 'accept: application/json'
Example Format of 200 Operation Successful Response
{
"links": [
{
"href": "string",
"hreflang": "string",
"length": 0,
"rel": "string",
"title": "string",
"type": "string",
"mediaType": "string",
"message": "string",
"code": 600
}
],
"items": [
{
"links": [
{
"href": "string",
"hreflang": "string",
"length": 0,
"rel": "string",
"title": "string",
"type": "string",
"mediaType": "string",
"message": "string",
"code": 600
}
],
"serviceName": "string"
}
]
}
Example Format of Bad Request Response
{
"errorCode": "string",
"status": 0,
"message": "string",
"details": "string",
"cause": "string",
"opcRequestId": "string"
}