The append_path property
{
"name": "My API",
"proxy": {
"append_path" : true,
"listen_path": "/service/*",
"upstreams" : {
"balancing": "roundrobin",
"targets": [
{"target": "http://my-api.com/example"}
]
},
}
}GET /service/path/to/resource HTTP/1.1
Host: my-api.comGET /example/service/path/to/resource HTTP/1.1
Host: my-api.comLast updated
Was this helpful?