List Versions of an Application

get

/decision/api/v1/applications/{appId}/versions

Retrieves a list of application versions that include: 1. All versions of a decision application. 2. All versions of a process application containing a local decision model. If an application version is activated, then the API response includes the boolean property activated that is set to true.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : ApplicationVersions
Title: ApplicationVersions
Match All
Show Source
Nested Schema : ApplicationVersions-allOf[1]
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : ApplicationVersion
Title: ApplicationVersion
Match All
Show Source
Nested Schema : ApplicationVersion-allOf[1]
Type: object
Show Source

400 Response

Bad request
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source

401 Response

Unauthorized
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source

404 Response

Resource not found

500 Response

Internal error
Body ()
Root Schema : ErrorMessage
Type: object
Title: ErrorMessage
Defines ErrorMessage
Show Source
Back to Top

Examples

Example: Get all versions of invoicing application

The following example shows how to get all versions of a decision 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'
      \   -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
        }
      ],
      "version": "string",
      "activated": false,
      "defaultVersion": false
    }
  ]
}

Example Format of Bad Request Response

{
  "errorCode": "string",
  "status": 0,
  "message": "string",
  "details": "string",
  "cause": "string",
  "opcRequestId": "string"
}
Back to Top