GET /v2/apps/341b677b-2323-45ec-87bf-17ab74bf4567/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 |
|
|
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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NiIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTZ9.ELs4TsRpKlrBgE_WJOwQy_OQLr2lHmxdLbNPeMGchUE Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/apps/341b677b-2323-45ec-87bf-17ab74bf4567/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NiIsImVtYWlsIjoiZW1haWwtMjE3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTZ9.ELs4TsRpKlrBgE_WJOwQy_OQLr2lHmxdLbNPeMGchUE" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "f3dfc04a-0648-4e8b-94b3-189b310e10a6", "url": "/v2/routes/f3dfc04a-0648-4e8b-94b3-189b310e10a6", "created_at": "2015-03-05T19:15:56Z", "updated_at": null }, "entity": { "host": "host-15", "domain_guid": "baa32db5-cfb8-4a35-b63a-4dcfea5c46b1", "space_guid": "c1c49721-d787-40c3-a6c7-d605aa60848e", "domain_url": "/v2/domains/baa32db5-cfb8-4a35-b63a-4dcfea5c46b1", "space_url": "/v2/spaces/c1c49721-d787-40c3-a6c7-d605aa60848e", "apps_url": "/v2/routes/f3dfc04a-0648-4e8b-94b3-189b310e10a6/apps" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 9d785895-35fd-4dd8-b367-8ab64d7843f3 Content-Length: 741 X-Content-Type-Options: nosniff