I used WSO2 Publisher application to create & publish an API with following configs:
Context = a
Version = v1.0
URL Pattern: /b/{bId}/c/{cId}
HTTP Verb: GET
Endpoint Type: HTTP Endpoint
Production Endpoint: http://backendserver:port/services/rest/GetXYZ
In the store I subscribed to the API, generated an application token and invoked the API with following URL:
https://gatewayserver:port/a/v1.0/b/123/c/456
However, when the gateway calls the backend service it somehow automatically changes the endpoint to the following:
http://backendserver:port/services/rest/456
instead of the expected:
http://backendserver:port/services/rest/GetXYZ
I verified the synapse config of the API and it captured the endpoint correctly as defined. what changes that backend endpoint automatically? How can it be avoided?