Home
Version 3
Routes Mapping API

Routes Mapping API

Retrieve a Particular Route Mapping

GET /v2/route_mappings/:guid

Request

Route

GET /v2/route_mappings/713fc052-9081-452d-ae0c-8818f685b8ea

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQiLCJlbWFpbCI6ImVtYWlsLTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MzYxODcwM30.cuZQojnYIOiKaEcZzNj4ynzqiBA2IYPUXONF-PIm58s
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/route_mappings/713fc052-9081-452d-ae0c-8818f685b8ea" -X GET \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQiLCJlbWFpbCI6ImVtYWlsLTRAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ2MzYxODcwM30.cuZQojnYIOiKaEcZzNj4ynzqiBA2IYPUXONF-PIm58s" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "metadata": {
    "guid": "713fc052-9081-452d-ae0c-8818f685b8ea",
    "url": "/v2/route_mappings/713fc052-9081-452d-ae0c-8818f685b8ea",
    "created_at": "2016-05-12T00:45:03Z",
    "updated_at": null
  },
  "entity": {
    "app_port": 8888,
    "app_guid": "654f0ea0-ba79-4731-9c7b-3a0d8d38672d",
    "route_guid": "6864b72f-6e38-4a08-a10b-dc7c64a61a5c",
    "app_url": "/v2/apps/654f0ea0-ba79-4731-9c7b-3a0d8d38672d",
    "route_url": "/v2/routes/6864b72f-6e38-4a08-a10b-dc7c64a61a5c"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 8bf9d733-c2ee-4597-9a4c-2cc45e0b59e7
Content-Length: 496
X-Content-Type-Options: nosniff