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.eyJ1c2VyX2lkIjoidWFhLWlkLTMiLCJlbWFpbCI6ImVtYWlsLTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNTc1NDEyOH0.528q51eRm0XmudxbLMYpXrAhCtDwjyXUAIKn4DSPmEQ
Host: example.org
Cookie: 

Route

GET /v2/apps/df01be93-3b96-401e-9ff1-436f7583b001/download

cURL

curl "https://api.[your-domain.com]/v2/apps/df01be93-3b96-401e-9ff1-436f7583b001/download" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMiLCJlbWFpbCI6ImVtYWlsLTNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxNTc1NDEyOH0.528q51eRm0XmudxbLMYpXrAhCtDwjyXUAIKn4DSPmEQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
Location: https://cc-packages.s3.amazonaws.com/df/01/df01be93-3b96-401e-9ff1-436f7583b001?AWSAccessKeyId=fake_aws_key_id&Signature=foo&Expires=1415152929
X-VCAP-Request-ID: 8613a160-2087-4711-9f5c-ce417d0aaecf
Content-Length: 0
X-Content-Type-Options: nosniff

Status

302 Found