I am creating an API with some context path and v1 version:
Then I try to provide the sandbox and production endpoints pointing at the backends. The goal is to have the following:
PRO: http://localhost:9090/myapi/{version}
SB: http://localhost:8080/myapi/{version}
That is to say I would like to use the version field in the backend path.
However I am getting the following errors:
Invalid Sandbox Endpoint URI. Please refer HTTP Endpoint documentation of the WSO2 ESB for details.
Invalid Production Endpoint URI. Please refer HTTP Endpoint documentation of the WSO2 ESB for details.
Is there any way to do this?
UPDATE:
I have found the following article (https://docs.wso2.com/display/AM260/Map+the+Parameters+of+your+Backend+URLs+with+the+API+Publisher+URLs) which explains how to map values using the uri.var prefix. So now in my endpoints I have:
PRO: http://localhost:9090/myapi/{uri.var.version}
SB: http://localhost:8080/myapi/{uri.var.version}
The problem now is that its value is empty.