Retrieve the Snapshots for a Project

get

/ic/api/process/v1/spaces/{spaceId}/projects/{projectId}/snapshots

Retrieves the list of snapshots available for a given project including the name and ID of the snapshot.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

Success. Retrieve snapshots.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : snapshot
Type: object
the representation of a design time snapshot created from a project

401 Response

Unauthorized

500 Response

Error in retrieving snapshots
Back to Top

Examples

The following example shows how to retrieve snapshot for 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>/spaces/<spaceId>/projects/<projectId>/snapshots

Where,

  • example.com is the host where Oracle Integration is running.

  • <version> is the REST API version.

  • <spaceId> is the unique ID for a space. To retrieve available spaces, see Retrieve Spaces.

  • <projectId> is the unique ID for a project. To retrieve available projects, see Retrieve projects

Example of Response Header

Status Code: 200 OK
Date:  Tue, 21 Mar 2017 08:39:54 GMT
Content-Type:  application/json

Example of Response Body

{
  "items": [
    {
      "id": "New snapshot",
      "description": "This is a new snapshot",
      "creator": "jsmith",
      "creation": "2017-03-31,02:26:43 PDT",
      "links": [
        {
          "href": "http://example.com:7001/ic/api/process/v1/spaces/46423b0a-a6a1-4748-b677-e8160bf50ce9/projects/New%20Project/snapshots/New%20snapshot",
          "rel": "self"
        },
        {
          "href": "http://example.com:7001/ic/api/process/v1/spaces/46423b0a-a6a1-4748-b677-e8160bf50ce9/projects/New%20Project/snapshots/New%20snapshot",
          "rel": "canonical"
        },
        {
          "href": "http://example.com:7001/ic/api/process/v1/spaces/46423b0a-a6a1-4748-b677-e8160bf50ce9/projects/New%20Project",
          "rel": "parent"
        }
      ]
    },
    {
      "id": "Snapshot1",
      "description": "This is my Snapshot",
      "creator": "jsmith",
      "creation": "2017-04-03,03:21:19 PDT",
      "links": [
        {
          "href": "http://example.com:7001/ic/api/process/v1/spaces/46423b0a-a6a1-4748-b677-e8160bf50ce9/projects/New%20Project/snapshots/Snapshot1",
          "rel": "self"
        },
        {
          "href": "http://example.com:7001/ic/api/process/v1/spaces/46423b0a-a6a1-4748-b677-e8160bf50ce9/projects/New%20Project/snapshots/Snapshot1",
          "rel": "canonical"
        },
        {
          "href": "http://example.com:7001/ic/api/process/v1/spaces/46423b0a-a6a1-4748-b677-e8160bf50ce9/projects/New%20Project",
          "rel": "parent"
        }
      ]
    }
  ],
  "links": [
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/46423b0a-a6a1-4748-b677-e8160bf50ce9/projects/New%20Project/snapshots",
      "rel": "self"
    },
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/46423b0a-a6a1-4748-b677-e8160bf50ce9/projects/New%20Project/snapshots",
      "rel": "canonical"
    },
    {
      "href": "http://example.com:7001/ic/api/process/v1/spaces/46423b0a-a6a1-4748-b677-e8160bf50ce9/projects/New%20Project",
      "rel": "parent"
    }
  ]
}
Back to Top