Retrieve Revisions of a Project
get
/ic/api/process/v1/targets/{targetId}/projects/{projectId}/revisions
Retrieves available revisions of the specified project.
Request
Path Parameters
-
projectId: string
The project ID
-
targetId: string
Select deployment partition targetAllowed Values:
[ "ORACLEINTERNALPCS", "ORACLEINTERNALPCSPLAYER" ]
Query Parameters
-
expand(optional): string
Load info from deployed project modelDefault Value:
NONE
Allowed Values:[ "ALL", "SERVICES", "REFERENCES", "COMPONENTS", "NONE" ]
Response
Supported Media Types
- application/json
- application/xml;qs=0.9
200 Response
Success. Retrieve Deployed project revisions.
Nested Schema : deployedProject
Type:
object
401 Response
Unauthorized
404 Response
Deployed project not found.
500 Response
Error in retrieving deployed project revisions
Examples
The following example shows how to retrieve all revisions of a project by submitting a GET request on the REST resource.
Send Request
The following example shows the contents of the send request:
https://example.com/ic/api/process/<version>/targets/<targetId>/projects/<projectId>/revisions
Where,
-
example.com
is the host where Oracle Integration is running. -
<version> is the REST API version.
-
<targetId> is the deployment partition target of a project. Allowed values are
ORACLEINTERNALPCS
andORACLEINTERNALPCSPLAYER
. -
<projectId> is the unique ID for a project. To retrieve available projects, see Retrieve projects
Example of Response Header
Status Code: 200 OK Date: Mon, 03 Apr 2017 09:39:39 GMT Content-Type: application/json
Example of Response Body
{ "items": [ { "partition": "ORACLEINTERNALPCS", "revisionId": "1.0", "RunTimeLiveInfo": { "state": "ON", "mode": "ACTIVE" }, "DesignTimeProjectReference": { "spaceId": "89f7e082-6855-4a75-b2a6-6a726aff7f23", "projectId": "myprojectdeploy" }, "RunTimeDeployInfo": { "deployTime": "2017-04-04,21:17:09 PDT", "isDefault": true }, "processDefIds": [ "oracleinternalpcs~myprojectdeploy!1.0~FormApprovalProcess" ], "links": [ { "href": "http://example.com:7001/ic/api/process/v1/targets/oracleinternalpcs/projects/myprojectdeploy/revisions/1.0", "rel": "self" }, { "href": "http://example.com:7001/ic/api/process/v1/targets/oracleinternalpcs/projects/myprojectdeploy/revisions/1.0", "rel": "canonical" }, { "href": "http://example.com:7001/ic/api/process/v1/", "rel": "parent" } ] }, { "partition": "ORACLEINTERNALPCS", "revisionId": "3.0", "RunTimeLiveInfo": { "state": "ON", "mode": "ACTIVE" }, "DesignTimeProjectReference": { "spaceId": "89f7e082-6855-4a75-b2a6-6a726aff7f23", "projectId": "myprojectdeploy" }, "RunTimeDeployInfo": { "deployTime": "2017-04-04,21:18:54 PDT", "isDefault": false }, "processDefIds": [ "oracleinternalpcs~myprojectdeploy!3.0~FormApprovalProcess" ], "links": [ { "href": "http://example.com:7001/ic/api/process/v1/targets/oracleinternalpcs/projects/myprojectdeploy/revisions/3.0", "rel": "self" }, { "href": "http://example.com:7001/ic/api/process/v1/targets/oracleinternalpcs/projects/myprojectdeploy/revisions/3.0", "rel": "canonical" }, { "href": "http://example.com:7001/ic/api/process/v1/", "rel": "parent" } ] }, { "partition": "ORACLEINTERNALPCS", "revisionId": "2.0", "RunTimeLiveInfo": { "state": "ON", "mode": "ACTIVE" }, "DesignTimeProjectReference": { "spaceId": "89f7e082-6855-4a75-b2a6-6a726aff7f23", "projectId": "myprojectdeploy" }, "RunTimeDeployInfo": { "deployTime": "2017-04-04,21:18:03 PDT", "isDefault": false }, "processDefIds": [ "oracleinternalpcs~myprojectdeploy!2.0~FormApprovalProcess" ], "links": [ { "href": "http://example.com:7001/ic/api/process/v1/targets/oracleinternalpcs/projects/myprojectdeploy/revisions/2.0", "rel": "self" }, { "href": "http://example.com:7001/ic/api/process/v1/targets/oracleinternalpcs/projects/myprojectdeploy/revisions/2.0", "rel": "canonical" }, { "href": "http://example.com:7001/ic/api/process/v1/", "rel": "parent" } ] } ], "links": [ { "href": "http://example.com:7001/ic/api/process/v1/targets/oracleinternalpcs/projects/myprojectdeploy/revisions", "rel": "self" }, { "href": "http://example.com:7001/ic/api/process/v1/targets/oracleinternalpcs/projects/myprojectdeploy/revisions", "rel": "canonical" }, { "href": "http://example.com:7001/ic/api/process/v1/", "rel": "parent" } ] }