List routes
GET /v3/apps/:guid/routes
Request
Route
GET /v3/apps/guid-191e9c45-e778-4ff9-a223-c03dcef96353/routes
Headers
cURL
curl "https://api.[your-domain.com]/v3/apps/guid-191e9c45-e778-4ff9-a223-c03dcef96353/routes" -X GET \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzOCIsImVtYWlsIjoiZW1haWwtNzZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ1MTQxMzY4Mn0._kYsaOsVcdpfGsDDdMnvdGavzZnuHubMNriThCueZws" \
-H "Host: example.org" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"pagination": {
"total_results": 2,
"first": {
"href": "/v3/apps/guid-191e9c45-e778-4ff9-a223-c03dcef96353/routes?page=1&per_page=50"
},
"last": {
"href": "/v3/apps/guid-191e9c45-e778-4ff9-a223-c03dcef96353/routes?page=1&per_page=50"
},
"next": null,
"previous": null
},
"resources": [
{
"guid": "8e1e3d10-5c77-48e7-9c15-38d4c0946a1c",
"host": "host-9",
"path": "",
"created_at": "2015-12-22T18:28:01Z",
"updated_at": null,
"links": {
"space": {
"href": "/v2/spaces/be76f146-2139-4589-96a3-3489bfc888d0"
},
"domain": {
"href": "/v2/domains/235d9128-b3d9-4b6b-b1c3-911159590e3c"
}
}
},
{
"guid": "efab3642-71b1-4ce9-ab7b-28515241e090",
"host": "host-10",
"path": "/foo/bar",
"created_at": "2015-12-22T18:28:01Z",
"updated_at": null,
"links": {
"space": {
"href": "/v2/spaces/be76f146-2139-4589-96a3-3489bfc888d0"
},
"domain": {
"href": "/v2/domains/3cda59fc-ce99-463e-9fe9-e9a325fb8797"
}
}
}
]
}
Headers