Home
Version 3
App Routes (Experimental) API

App Routes (Experimental) API

List routes

GET /v3/apps/:guid/routes

Request

Route

GET /v3/apps/guid-d01b7cec-2f56-4136-8778-c06876c620a7/routes

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MyIsImVtYWlsIjoiZW1haWwtMjM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTZ9.7zYmfrX5YtnXx2PZ5uOF_x_SaAoO2ozN-6DMSqBwLp8
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-d01b7cec-2f56-4136-8778-c06876c620a7/routes" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5MyIsImVtYWlsIjoiZW1haWwtMjM5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTZ9.7zYmfrX5YtnXx2PZ5uOF_x_SaAoO2ozN-6DMSqBwLp8" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 2,
    "first": {
      "href": "/v3/apps/guid-d01b7cec-2f56-4136-8778-c06876c620a7/routes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-d01b7cec-2f56-4136-8778-c06876c620a7/routes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "dbfa6332-ef34-4e13-ae0f-3be4a22c000a",
      "host": "host-23",
      "path": "",
      "created_at": "2015-05-21T01:03:16Z",
      "updated_at": null,
      "_links": {
        "space": {
          "href": "/v2/spaces/b96994a9-632a-4c50-b4f9-9c57f8a38a50"
        },
        "domain": {
          "href": "/v2/domains/36e817a2-6cad-47af-9813-55896fbb5682"
        }
      }
    },
    {
      "guid": "84de8d8e-2c3e-4bb5-8e1a-e5762536899b",
      "host": "host-24",
      "path": "/foo/bar",
      "created_at": "2015-05-21T01:03:16Z",
      "updated_at": null,
      "_links": {
        "space": {
          "href": "/v2/spaces/b96994a9-632a-4c50-b4f9-9c57f8a38a50"
        },
        "domain": {
          "href": "/v2/domains/1c4cce7e-1d9c-4c47-8f6e-acaebf7721b8"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a94bd629-068e-4d8d-9ca2-30d1e5f34d49
Content-Length: 1152
X-Content-Type-Options: nosniff