Name | Description | Default | Valid Values | Example Values |
---|
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 |
|
|
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 |
|
|
Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMyIsImVtYWlsIjoiZW1haWwtMjM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNzB9.wppA99BJXoI7k5YyIxYqzc9c6gs0TXGdrpcj_EtEFxA Host: example.org Cookie:
GET /v2/apps/51bb03b0-c6cf-4399-9d6d-9e47ea21936d/routes
curl "https://api.[your-domain.com]/v2/apps/51bb03b0-c6cf-4399-9d6d-9e47ea21936d/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMxMyIsImVtYWlsIjoiZW1haWwtMjM4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNzB9.wppA99BJXoI7k5YyIxYqzc9c6gs0TXGdrpcj_EtEFxA" \ -H "Host: example.org" \ -H "Cookie: "
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 78c5ba4b-0b09-49d4-8a5c-84ea74ca5a5d Content-Length: 746 X-Content-Type-Options: nosniff
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "78748ad7-41a6-4ef9-8280-f364aff7f95e", "url": "/v2/routes/78748ad7-41a6-4ef9-8280-f364aff7f95e", "created_at": "2014-11-24T19:32:50+00:00", "updated_at": null }, "entity": { "host": "host-15", "domain_guid": "d2b91425-13f6-49d3-97c6-251e66876090", "space_guid": "7ee003da-c680-43f8-b126-8b05578fbd5c", "domain_url": "/v2/domains/d2b91425-13f6-49d3-97c6-251e66876090", "space_url": "/v2/spaces/7ee003da-c680-43f8-b126-8b05578fbd5c", "apps_url": "/v2/routes/78748ad7-41a6-4ef9-8280-f364aff7f95e/apps" } } ] }