Home
Version 3
App Routes (Experimental) API

App Routes (Experimental) API

List routes

GET /v3/apps/:guid/routes

Request

Route

GET /v3/apps/guid-cd3ec5d4-5837-4ec4-8f53-993ab04ae02c/routes

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMyIsImVtYWlsIjoiZW1haWwtODRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3OX0.b_eO76VXjqP43X3zKoXddhCYvhSYHKalFZUryaSQOT4
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-cd3ec5d4-5837-4ec4-8f53-993ab04ae02c/routes" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzMyIsImVtYWlsIjoiZW1haWwtODRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzNjgyOTc3OX0.b_eO76VXjqP43X3zKoXddhCYvhSYHKalFZUryaSQOT4" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 2,
    "first": {
      "href": "/v3/apps/guid-cd3ec5d4-5837-4ec4-8f53-993ab04ae02c/routes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-cd3ec5d4-5837-4ec4-8f53-993ab04ae02c/routes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "f11ec5a5-ccec-47f3-a185-13dc65039251",
      "host": "host-5",
      "path": "",
      "created_at": "2015-07-06T23:22:59Z",
      "updated_at": null,
      "_links": {
        "space": {
          "href": "/v2/spaces/58a63089-23cd-4acc-9122-4a876357997e"
        },
        "domain": {
          "href": "/v2/domains/ffcf6d58-b7ad-4f4f-a064-c44a0cb87fef"
        }
      }
    },
    {
      "guid": "a2c85ba2-ee25-4b64-94d3-76689ba744ff",
      "host": "host-6",
      "path": "/foo/bar",
      "created_at": "2015-07-06T23:22:59Z",
      "updated_at": null,
      "_links": {
        "space": {
          "href": "/v2/spaces/58a63089-23cd-4acc-9122-4a876357997e"
        },
        "domain": {
          "href": "/v2/domains/4d40a818-b088-4483-9e93-3b0489943d40"
        }
      }
    }
  ]
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 67f85e3a-6089-4699-94f6-cc511e9d3f0f
Content-Length: 1150
X-Content-Type-Options: nosniff