Retrieve redirect and rewrite rules

GET {{baseUrl}}/services/:serviceId/routes?type=rewrite,redirect&source=<string>,<string>&destination=<string>,<string>&cursor=<string>&limit=20

Request Params

KeyDatatypeRequiredDescription
typestringFilter for the type of route rule
sourcestringFilter for the source path of the route
destinationstringFilter for the destination path of the route
cursorstringCursor to begin retrieving entries for this query
limitnumberMax number of items that can be returned

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

[{&quot;routes&quot;:{&quot;type&quot;:&quot;redirect&quot;,&quot;source&quot;:&quot;\u003cstring\u003e&quot;,&quot;destination&quot;:&quot;\u003cstring\u003e&quot;},&quot;cursor&quot;:&quot;\u003cstring\u003e&quot;},{&quot;routes&quot;:{&quot;type&quot;:&quot;redirect&quot;,&quot;source&quot;:&quot;\u003cstring\u003e&quot;,&quot;destination&quot;:&quot;\u003cstring\u003e&quot;},&quot;cursor&quot;:&quot;\u003cstring\u003e&quot;}]