Home
Version 3
App Routes (Experimental) API

App Routes (Experimental) API

List routes

GET /v3/apps/:guid/routes

Request

Route

GET /v3/apps/guid-ed308e16-9ecc-47c5-b4f0-78d9f820b160/routes

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxNCIsImVtYWlsIjoiZW1haWwtMjg1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTJ9.4rTG4LnSySh3iBtS3nv9sb5ryTADmj7v9a2UZjAggkY
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-ed308e16-9ecc-47c5-b4f0-78d9f820b160/routes" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxNCIsImVtYWlsIjoiZW1haWwtMjg1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTMzMTA5OTJ9.4rTG4LnSySh3iBtS3nv9sb5ryTADmj7v9a2UZjAggkY" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "pagination": {
    "total_results": 2,
    "first": {
      "href": "/v3/apps/guid-ed308e16-9ecc-47c5-b4f0-78d9f820b160/routes?page=1&per_page=50"
    },
    "last": {
      "href": "/v3/apps/guid-ed308e16-9ecc-47c5-b4f0-78d9f820b160/routes?page=1&per_page=50"
    },
    "next": null,
    "previous": null
  },
  "resources": [
    {
      "guid": "e6594783-92e4-4239-b78f-06db1ac9079b",
      "host": "host-21",
      "path": "",
      "created_at": "2016-01-13T17:29:52Z",
      "updated_at": null,
      "links": {
        "space": {
          "href": "/v2/spaces/85bb48a5-6579-47ac-be98-331e403868b2"
        },
        "domain": {
          "href": "/v2/domains/59d5c82e-6951-4a0b-bd9f-94546c4182c8"
        }
      }
    },
    {
      "guid": "74e2c26b-63bf-4a36-a2bf-a2f561cc23be",
      "host": "host-22",
      "path": "/foo/bar",
      "created_at": "2016-01-13T17:29:52Z",
      "updated_at": null,
      "links": {
        "space": {
          "href": "/v2/spaces/85bb48a5-6579-47ac-be98-331e403868b2"
        },
        "domain": {
          "href": "/v2/domains/4b4c4e70-a0c4-44d6-a031-fb0d85007e21"
        }
      }
    }
  ]
}

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.017503
Content-Length: 1150