Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

List associated packages

GET /v3/apps/:guid/packages

Request

Route

GET /v3/apps/guid-0e52aace-3ca6-4405-a67b-ab7d3a96cca7/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.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MCIsImVtYWlsIjoiZW1haWwtMTMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDZ9.Pt-oyN9pab50uBIVQuAjk3F7vrCcVKkbmVZbueI3nJE
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-0e52aace-3ca6-4405-a67b-ab7d3a96cca7/packages" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4MCIsImVtYWlsIjoiZW1haWwtMTMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NDZ9.Pt-oyN9pab50uBIVQuAjk3F7vrCcVKkbmVZbueI3nJE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 1,
    "first": {
      "href": "/v3/apps/guid-0e52aace-3ca6-4405-a67b-ab7d3a96cca7/packages?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-0e52aace-3ca6-4405-a67b-ab7d3a96cca7/packages?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "guid-26e2bdf1-f0d5-46af-b043-2963ffe9b5de",
      "type": "bits",
      "hash": null,
      "url": null,
      "state": "AWAITING_UPLOAD",
      "error": null,
      "created_at": "2015-03-05T19:15:46Z",
      "_links": {
        "self": {
          "href": "/v3/packages/guid-26e2bdf1-f0d5-46af-b043-2963ffe9b5de"
        },
        "upload": {
          "href": "/v3/packages/guid-26e2bdf1-f0d5-46af-b043-2963ffe9b5de/upload"
        },
        "app": {
          "href": "/v3/apps/guid-0e52aace-3ca6-4405-a67b-ab7d3a96cca7"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: e351dfc3-b50a-4b29-a114-9821323e10cb
Content-Length: 915
X-Content-Type-Options: nosniff