I have discover routes and route based on url path rather than instanceId. I have tried url rewrite but not working. not sure if discovery mechanism works with full or partial url matching.
spring:
application:
name: npci-gateway
cloud:
gateway:
discovery:
locator:
enabled: true
lower-case-service-id: true
filters[0]:
name: RewritePath
args[regexp]: "'/' + '/?(?<remaining>.*)'"
args[replacement]: "'/${remaining}'"