Retrieve Route Associated to a Specific Service

GET {{gateway}}/services/:serviceNameOrId/routes/:routeNameOrId

Retrieve Route Associated to a Specific Service konghq

AttributesMandatoryTypeDescription
Service name or idrequiredpathThe unique identifier or the name of the Service to retrieve
Route name or idrequiredpathThe unique identifier or the name of the Route to retrieve.

RESPONSES

status: OK

{"id":"d35165e2-d03e-461a-bdeb-dad0a112abfe","created_at":1422386534,"updated_at":1422386534,"name":"my-route","protocols":["http","https"],"methods":["GET","POST"],"hosts":["example.com","foo.test"],"paths":["/foo","/bar"],"headers":{"x-another-header":["bla"],"x-my-header":["foo","bar"]},"https_redirect_status_code":426,"regex_priority":0,"strip_path":true,"path_handling":"v0","preserve_host":false,"tags":["user-level","low-priority"],"service":{"id":"af8330d3-dbdc-48bd-b1be-55b98608834b"},"destinations":"anim id esse","snis":"in magna","sources":"aliquip anim"}