Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

List associated packages

GET /v3/apps/:guid/packages

Request

Route

GET /v3/apps/guid-9c652e8b-6966-4ea8-a4b0-5327f0bd3d5a/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.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNCIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzN9.NojVfCr7ou18qdA2dkAoJnzMBPCGV1e88hJWl7Il5sE
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-9c652e8b-6966-4ea8-a4b0-5327f0bd3d5a/packages" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNCIsImVtYWlsIjoiZW1haWwtMjI2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzN9.NojVfCr7ou18qdA2dkAoJnzMBPCGV1e88hJWl7Il5sE" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 1,
    "first": {
      "href": "/v3/apps/guid-9c652e8b-6966-4ea8-a4b0-5327f0bd3d5a/packages?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-9c652e8b-6966-4ea8-a4b0-5327f0bd3d5a/packages?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "guid-377772bc-529d-4ba9-975e-043e846743e1",
      "type": "bits",
      "hash": null,
      "url": null,
      "state": "AWAITING_UPLOAD",
      "error": null,
      "created_at": "2015-03-03T00:51:13Z",
      "_links": {
        "self": {
          "href": "/v3/packages/guid-377772bc-529d-4ba9-975e-043e846743e1"
        },
        "upload": {
          "href": "/v3/packages/guid-377772bc-529d-4ba9-975e-043e846743e1/upload"
        },
        "app": {
          "href": "/v3/apps/guid-9c652e8b-6966-4ea8-a4b0-5327f0bd3d5a"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 4dae5a40-2d3f-4755-8870-47be1a8c30cd
Content-Length: 915
X-Content-Type-Options: nosniff