Skip to content

Add RewritePath filter to catalogue-service route

Kayouh Salaheddine a demandé de fusionner fix/catalogue-route-rewrite-path vers develop

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 rewritePath filter on the catalogue-service route in GatewayConfig.java that 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.

Rapports de requête de fusion