Home
Version 3
Apps API

Apps API

Downloads the bits for an App

GET /v2/apps/:guid/download

When using a remote blobstore, such as AWS, the response is a redirect to the actual location of the bits.

Fields

Name Description Default Valid Values Example Values

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MSIsImVtYWlsIjoiZW1haWwtMTg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDh9.eNoS4XceJheSCJYHWV8P05ojJbA8_RZdomj0fXG9_V4
Host: example.org
Cookie: 

Route

GET /v2/apps/f5527f72-a1a7-46c3-97c5-9d74a93d60c7/download

cURL

curl "https://api.[your-domain.com]/v2/apps/f5527f72-a1a7-46c3-97c5-9d74a93d60c7/download" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MSIsImVtYWlsIjoiZW1haWwtMTg2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MDh9.eNoS4XceJheSCJYHWV8P05ojJbA8_RZdomj0fXG9_V4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
Location: https://cc-packages.s3.amazonaws.com/f5/52/f5527f72-a1a7-46c3-97c5-9d74a93d60c7?AWSAccessKeyId=fake_aws_key_id&Signature=foo&Expires=1415925508
X-VCAP-Request-ID: 80c43e11-48b4-4fe4-96d7-b1ff563dc5f7
Content-Length: 0
X-Content-Type-Options: nosniff

Status

302 Found