List Routes Associated to a Specific Service

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

List Routes Associated to a Specific Service konghq

RESPONSES

status: OK

{"next":null,"data":[{"id":"875973fd-ba3f-4c7b-8301-e9263013e6d2","path_handling":"v0","paths":["/foo","/bar"],"destinations":null,"headers":{"x-another-header":["bla"],"x-my-header":["foo","bar"]},"protocols":["http","https"],"methods":["GET","POST"],"snis":null,"service":{"id":"c8b8f724-7e73-4df6-b1a8-8df19642d388"},"name":"my-route","strip_path":true,"preserve_host":false,"regex_priority":0,"updated_at":1583977879,"sources":null,"hosts":["example.com","foo.test"],"https_redirect_status_code":426,"tags":["user-level","low-priority"],"created_at":1583977879}]}
AttributesMandatoryTypeDescription
service name or idrequiredpathThe unique identifier or the name attribute of the Service whose Routes are to be retrieved. When using this endpoint, only Routes associated to the specified Service will be listed.