GET /v2/apps/aa3a1bfb-f549-42e5-8f74-7278af604d34/routes
Name | Description | Valid Values | Example Values |
---|---|---|---|
guid | The guid of the App |
|
|
q |
Parameters used to filter the result set. Format queries as <filter><op><value> Valid ops: : >= <= < > IN Valid filters: host, domain_guid, organization_guid, path |
|
|
page | Page of results to fetch |
|
|
results-per-page | Number of results per page |
|
|
order-direction | Order of the results: asc (default) or desc |
|
|
inline-relations-depth | 0 - don't inline any relations and return URLs. Otherwise, inline to depth N. |
|
|
orphan-relations | 0 - de-duplicate object entries in response |
|
|
exclude-relations | comma-delimited list of relations to drop from response |
|
|
include-relations | comma-delimited list of the only relations to include in response |
|
|
Name | Description | Default | Valid Values | Example Values |
---|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzIiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ0fQ.iE-BzUXkF9vKILxktVD7qfj1sk0Tzi-jbKS6rPwicpU Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/apps/aa3a1bfb-f549-42e5-8f74-7278af604d34/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzIiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ0fQ.iE-BzUXkF9vKILxktVD7qfj1sk0Tzi-jbKS6rPwicpU" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "136eeeac-8eb1-44ce-8407-8f9052a0805e", "url": "/v2/routes/136eeeac-8eb1-44ce-8407-8f9052a0805e", "created_at": "2015-06-16T23:40:44Z", "updated_at": null }, "entity": { "host": "host-1", "path": "", "domain_guid": "15780da7-2d66-4f21-818d-55afe355f4df", "space_guid": "225005da-bc5b-4f0f-9204-c7d0e0b33c9d", "domain_url": "/v2/domains/15780da7-2d66-4f21-818d-55afe355f4df", "space_url": "/v2/spaces/225005da-bc5b-4f0f-9204-c7d0e0b33c9d", "apps_url": "/v2/routes/136eeeac-8eb1-44ce-8407-8f9052a0805e/apps" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: bf6b0194-4671-4ebd-890c-d59be05a1953 Content-Length: 760 X-Content-Type-Options: nosniff