Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

List associated packages

GET /v3/apps/:guid/packages

Request

Route

GET /v3/apps/guid-03a5384f-68c0-4bae-93c6-9fcf89122b57/packages

Parameters

Name Description Valid Values Example Values
page Page to display
  • >= 1
per_page Number of results per page
  • 1-5000

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMiIsImVtYWlsIjoiZW1haWwtMTAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTJ9.uhRFYTYDf0Iev0lrC7ubGqIKtPuNDwRSzAK_5q0eBUM
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-03a5384f-68c0-4bae-93c6-9fcf89122b57/packages" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMiIsImVtYWlsIjoiZW1haWwtMTAxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MTJ9.uhRFYTYDf0Iev0lrC7ubGqIKtPuNDwRSzAK_5q0eBUM" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 1,
    "first": {
      "href": "/v3/apps/guid-03a5384f-68c0-4bae-93c6-9fcf89122b57/packages?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-03a5384f-68c0-4bae-93c6-9fcf89122b57/packages?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "guid-bbec6c9c-38b4-49d2-b196-13018a90dbab",
      "type": "bits",
      "hash": null,
      "url": null,
      "state": "AWAITING_UPLOAD",
      "error": null,
      "created_at": "2015-05-15T16:53:32Z",
      "updated_at": null,
      "_links": {
        "self": {
          "href": "/v3/packages/guid-bbec6c9c-38b4-49d2-b196-13018a90dbab"
        },
        "upload": {
          "href": "/v3/packages/guid-bbec6c9c-38b4-49d2-b196-13018a90dbab/upload",
          "method": "POST"
        },
        "app": {
          "href": "/v3/apps/guid-03a5384f-68c0-4bae-93c6-9fcf89122b57"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 99588533-e9a8-459f-9137-afca1399f2e7
Content-Length: 969
X-Content-Type-Options: nosniff