GET /v2/apps/03dc0c56-39e2-4e23-86bc-360818dc38f7/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.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNyIsImVtYWlsIjoiZW1haWwtMjI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzR9.W50mEh3SOK58g-ZFkOPwEEco4Tj2e3hlZHkPCqW50eg Host: example.org Cookie:
curl "https://api.[your-domain.com]/v2/apps/03dc0c56-39e2-4e23-86bc-360818dc38f7/routes" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyNyIsImVtYWlsIjoiZW1haWwtMjI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzR9.W50mEh3SOK58g-ZFkOPwEEco4Tj2e3hlZHkPCqW50eg" \ -H "Host: example.org" \ -H "Cookie: "
200 OK
{ "total_results": 1, "total_pages": 1, "prev_url": null, "next_url": null, "resources": [ { "metadata": { "guid": "8523469d-9a6e-4319-b538-2f384daa47c3", "url": "/v2/routes/8523469d-9a6e-4319-b538-2f384daa47c3", "created_at": "2015-03-03T00:51:14Z", "updated_at": null }, "entity": { "host": "host-17", "domain_guid": "d585339c-30e9-4f21-bdc1-3d8ef010ea3a", "space_guid": "27fa3327-2aa7-40b2-b789-4fedd2ba536d", "domain_url": "/v2/domains/d585339c-30e9-4f21-bdc1-3d8ef010ea3a", "space_url": "/v2/spaces/27fa3327-2aa7-40b2-b789-4fedd2ba536d", "apps_url": "/v2/routes/8523469d-9a6e-4319-b538-2f384daa47c3/apps" } } ] }
Content-Type: application/json;charset=utf-8 X-VCAP-Request-ID: 51a034fc-4e1e-4012-b9d7-7af3d9cab3e9 Content-Length: 741 X-Content-Type-Options: nosniff