Home
Version 3
App Routes (Experimental) API

App Routes (Experimental) API

List routes

GET /v3/apps/:guid/routes

Request

Route

GET /v3/apps/guid-1d611049-14aa-4d70-b03c-99167f29f25e/routes

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMSIsImVtYWlsIjoiZW1haWwtNjZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0ODAzODk0N30.1eTCD2iPFM3_PD1WcMD3k16n_JeWfWwKSxKvMUoJoes
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-1d611049-14aa-4d70-b03c-99167f29f25e/routes" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEwMSIsImVtYWlsIjoiZW1haWwtNjZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0ODAzODk0N30.1eTCD2iPFM3_PD1WcMD3k16n_JeWfWwKSxKvMUoJoes" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 2,
    "first": {
      "href": "/v3/apps/guid-1d611049-14aa-4d70-b03c-99167f29f25e/routes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-1d611049-14aa-4d70-b03c-99167f29f25e/routes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "b50b52bf-7874-4ca3-be79-e0c6b06cd4dd",
      "host": "host-13",
      "path": "",
      "created_at": "2015-11-13T17:02:27Z",
      "updated_at": null,
      "links": {
        "space": {
          "href": "/v2/spaces/2f985fea-5f81-4486-8540-5c1e9e136360"
        },
        "domain": {
          "href": "/v2/domains/6c44f88f-01bd-4002-9ce8-a580dd868495"
        }
      }
    },
    {
      "guid": "e0ccccea-ea45-41e7-b169-e1fd72f33e99",
      "host": "host-14",
      "path": "/foo/bar",
      "created_at": "2015-11-13T17:02:27Z",
      "updated_at": null,
      "links": {
        "space": {
          "href": "/v2/spaces/2f985fea-5f81-4486-8540-5c1e9e136360"
        },
        "domain": {
          "href": "/v2/domains/de75b2eb-e617-45a6-8918-0922b436004d"
        }
      }
    }
  ]
}

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
X-Runtime: 0.020082
Content-Length: 1150