Home
Version 3
App Routes (Experimental) API

App Routes (Experimental) API

List routes

GET /v3/apps/:guid/routes

Request

Route

GET /v3/apps/guid-d36dac2b-4070-4ae4-90b0-30aebf33f560/routes

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOSIsImVtYWlsIjoiZW1haWwtMjMxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTV9.a656dIVRrEJCUIJJDZlGbUqxhdJaHyM-4uliIzTvxaY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-d36dac2b-4070-4ae4-90b0-30aebf33f560/routes" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyOSIsImVtYWlsIjoiZW1haWwtMjMxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjkwMzg3MTV9.a656dIVRrEJCUIJJDZlGbUqxhdJaHyM-4uliIzTvxaY" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 2,
    "first": {
      "href": "/v3/apps/guid-d36dac2b-4070-4ae4-90b0-30aebf33f560/routes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-d36dac2b-4070-4ae4-90b0-30aebf33f560/routes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "2bf82646-3170-4fb8-8662-c6e4ce3a422e",
      "host": "host-16",
      "_links": {
        "space": {
          "href": "/v2/spaces/7b3d9a88-33e6-40e2-8fdb-747c2a7eac49"
        },
        "domain": {
          "href": "/v2/domains/40e699c4-52bf-4df6-b98f-235119255063"
        }
      }
    },
    {
      "guid": "83106a14-e72f-4ae7-82e2-484050c38aca",
      "host": "host-17",
      "_links": {
        "space": {
          "href": "/v2/spaces/7b3d9a88-33e6-40e2-8fdb-747c2a7eac49"
        },
        "domain": {
          "href": "/v2/domains/dbfb4cf1-233a-49e2-9dc3-9c3f0683c161"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 13afc47c-37aa-4271-bf7a-b53167bf312a
Content-Length: 968
X-Content-Type-Options: nosniff