Home
Version 3
App Routes (Experimental) API

App Routes (Experimental) API

List routes

GET /v3/apps/:guid/routes

Request

Route

GET /v3/apps/guid-3b475eb3-53b4-4f3e-9e5e-9e3fe9932a21/routes

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMiIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTl9.jMa0bb6EX4dXCTgEoop2FOXUyjnl0UB-zk2dBvYIJIo
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-3b475eb3-53b4-4f3e-9e5e-9e3fe9932a21/routes" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMiIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzM5ODExMTl9.jMa0bb6EX4dXCTgEoop2FOXUyjnl0UB-zk2dBvYIJIo" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 2,
    "first": {
      "href": "/v3/apps/guid-3b475eb3-53b4-4f3e-9e5e-9e3fe9932a21/routes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-3b475eb3-53b4-4f3e-9e5e-9e3fe9932a21/routes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "e14fcb13-5948-4d5e-9405-f318b0c468fb",
      "host": "host-21",
      "path": "",
      "created_at": "2015-06-04T00:05:19Z",
      "updated_at": null,
      "_links": {
        "space": {
          "href": "/v2/spaces/4b876d67-6fb6-416c-8478-716e76ba26f1"
        },
        "domain": {
          "href": "/v2/domains/a66b6356-1e2b-48cd-9a58-131419777a7c"
        }
      }
    },
    {
      "guid": "08593897-ac91-4eae-b284-90ba83ef299d",
      "host": "host-22",
      "path": "/foo/bar",
      "created_at": "2015-06-04T00:05:19Z",
      "updated_at": null,
      "_links": {
        "space": {
          "href": "/v2/spaces/4b876d67-6fb6-416c-8478-716e76ba26f1"
        },
        "domain": {
          "href": "/v2/domains/b6fd5c55-ba7d-4ecf-ae16-3221876a8df6"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 7f974ec5-556c-44ea-a5d0-2ce5adfb65f8
Content-Length: 1152
X-Content-Type-Options: nosniff