

http://<backend>/anything/api/<sub_path>
After the API is published to the Kong gateway, the call URL is rewritten to http://<kong>/new/path/<sub_path>
/anything/api.


/new/path and enable the Strip Path option (enabled by default).

http://<kong>/new/path/user, the request path received by the backend service is /anything/api/user.http://<backend>/anything/user_list
After publishing to the Kong gateway, the call URL is rewritten to http://<kong>/users/users.

replace.uri to /anything/user_list. This path is the actual request path received by the backend.

/anything/path. (The original service path configuration is overwritten.)http://<backend>/anything/<user_id>/get
After the API is published to the Kong gateway, the call URL is rewritten to http://<kong>/user/<user_id>/user/(?<user_id>\\w+).


replace.uri to /anything/$(uri_captures['user_id'])/get. This path is the actual request path received by the backend.

http://<kong>/user/user_a, the path of the request received by the backend service is /anything/user_a/get.Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback