Hi Team,
I have two endpoint:
api/v2/foo/{id}/hotels
api/v1/bar/{id}/hotels
I just need to redirection if the id starts “A-” and i want to do it only with prefix matching and not regex. I’m trying to do this with following configuration:
- match:
- uri:
prefix: “/api/v2/foo/A-”
rewrite:
uri: “/api/v1/bar/A-”
- uri:
But for some reason its not working. Could someone help me with this.