Home
Version 3
App Routes (Experimental) API

App Routes (Experimental) API

List routes

GET /v3/apps/:guid/routes

Request

Route

GET /v3/apps/guid-1e9fa779-5348-47eb-b6c6-edb317cf71c9/routes

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MjR9.O5MRZuhm8kkJSYOMjlEdZx9fsMTkxESqtxWIiARJ5ME
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-1e9fa779-5348-47eb-b6c6-edb317cf71c9/routes" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMyMiIsImVtYWlsIjoiZW1haWwtMjQ5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzIzMTM2MjR9.O5MRZuhm8kkJSYOMjlEdZx9fsMTkxESqtxWIiARJ5ME" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 2,
    "first": {
      "href": "/v3/apps/guid-1e9fa779-5348-47eb-b6c6-edb317cf71c9/routes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-1e9fa779-5348-47eb-b6c6-edb317cf71c9/routes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "3f12664b-a0b2-4028-849f-420347860fec",
      "host": "host-22",
      "path": "",
      "created_at": "2015-05-15T16:53:44Z",
      "updated_at": null,
      "_links": {
        "space": {
          "href": "/v2/spaces/b27273ea-0b12-4fcb-b524-458ae818cfee"
        },
        "domain": {
          "href": "/v2/domains/d2792342-f74f-440f-a78d-5270a1a36c04"
        }
      }
    },
    {
      "guid": "232cf3be-6f36-42a0-bacd-15f081489e0e",
      "host": "host-23",
      "path": "/foo/bar",
      "created_at": "2015-05-15T16:53:44Z",
      "updated_at": null,
      "_links": {
        "space": {
          "href": "/v2/spaces/b27273ea-0b12-4fcb-b524-458ae818cfee"
        },
        "domain": {
          "href": "/v2/domains/d103aeab-61f4-4206-8206-be08dc2b0561"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b15fae85-eb5d-48ca-ad7a-4b593a1d2b63
Content-Length: 1152
X-Content-Type-Options: nosniff