Add RewritePath filter to catalogue-service route
Summary
-
Problem: All requests to
/api/catalogue/**were returning 404 from the catalogue service. The downstream controller is registered at/api/v1/properties, not/api/catalogue/**, so the gateway was forwarding requests with the wrong path prefix. -
Fix: Added a
rewritePathfilter on thecatalogue-serviceroute inGatewayConfig.javathat rewrites/api/catalogue/{segment}→/api/{segment}before proxying. This makes/api/catalogue/v1/properties/...forward as/api/v1/properties/..., which matches the catalogue controller's actual mount point. -
Scope: Single route change, no impact on other routes or filters. Circuit breaker and fallback behaviour are unchanged.