You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While attempting to capture some parameters in a route using the following path: ["\/api\/claims\/(?<version>\\S+)"]
I ran into an issue where the wildcard routing doesn't seem to work with that regex in place.
Example:
Service URL: https://mydomain.com/api
Route Path: ["/api/claims/(?<version>\S+)"]
HTTP GET: https://mygateway.com/api/claims/v2.0/resource
routes to: https://mydomain.com/api
when it should route to
https://mycomain.com/api/resource
Appears to be the case only if the regex field is the final path parameter in the PATH.
so a PATH of /api/claim/(?<version>\S+)/test will route as expected.
Summary
While attempting to capture some parameters in a route using the following path:
["\/api\/claims\/(?<version>\\S+)"]
I ran into an issue where the wildcard routing doesn't seem to work with that regex in place.
Example:
Service URL: https://mydomain.com/api
Route Path:
["/api/claims/(?<version>\S+)"]
SUMMARY_GOES_HERE
Steps To Reproduce
somekonggateway.com/api/claims/v2.0/resource1/resource2
mytestdomain.com/api
without additional paramsAdditional Details & Logs
$ kong version
) 0.13.1The text was updated successfully, but these errors were encountered: