Home
Version 3
Routes API

Routes API

Retrieve a Particular Route

GET /v2/routes/:guid

Request

Route

GET /v2/routes/75789683-f27a-4df1-b5a6-9919e90efed8

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMiIsImVtYWlsIjoiZW1haWwtMzA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk4MDF9.PKdkiV-jWRFD4UQ3QDC3vK-oYbsskZde864FNPDJafQ
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/75789683-f27a-4df1-b5a6-9919e90efed8" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxMiIsImVtYWlsIjoiZW1haWwtMzA0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk4MDF9.PKdkiV-jWRFD4UQ3QDC3vK-oYbsskZde864FNPDJafQ" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "75789683-f27a-4df1-b5a6-9919e90efed8",
    "url": "/v2/routes/75789683-f27a-4df1-b5a6-9919e90efed8",
    "created_at": "2015-07-06T23:23:21Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-21",
    "path": "",
    "domain_guid": "4e5326a2-ccf6-4f56-904d-1306c1617981",
    "space_guid": "57a6efab-0089-4e17-8e1f-44fc1931fcf5",
    "domain_url": "/v2/domains/4e5326a2-ccf6-4f56-904d-1306c1617981",
    "space_url": "/v2/spaces/57a6efab-0089-4e17-8e1f-44fc1931fcf5",
    "apps_url": "/v2/routes/75789683-f27a-4df1-b5a6-9919e90efed8/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: f57eadbb-2d12-415b-b157-57e8f1e0cb82
Content-Length: 586
X-Content-Type-Options: nosniff