Using zuul, is it possible to configure routes to use parts from the path in the url?
This meta code config using normal regexp explains what I'd like to do.
zuul:
routes:
foobar:
path: /foo/{.*}/bar/{.*}
url: http://foobar/\2/\1
So /foo/123/bar/456 would be routed to http://foobar/456/123
You can write your own routing filter, example: https://cloud.spring.io/spring-cloud-netflix/multi/multi__router_and_filter_zuul.html#_how_to_write_a_route_filter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With