How to use regular expressions in Kong service path


#1

I want to route http://kong-gateway/api/v1/user/(?P<uuid>[\w\d\-]+) to http://user-service/user/(?P<uuid>[\w\d\-]+).

To do that, I need to create a service with host: user-service and path: /user/(?P<uuid>[\w\d\-]+). But when I try to create a service with these configurations with Kong Dashboard, Kong complains: character outside of the reserved list of RFC 3986.

How to solve this problem?


#2

@fazlerabby7 did you manage to get it work ? i’m facing the same issue.


#3

Still not, planning to write a plugin for this.


#4

@thibaultcha need help.