title: Can we map the version value in the WSO2 Managed API endpoint URL?
body: <p>I am creating an API with some context path and v1 version:</p>
  
  <p><a href="https://i.stack.imgur.com/pLIt3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pLIt3.png" alt="enter image description here"></a></p>
  
  <p>Then I try to provide the sandbox and production endpoints pointing at the backends. The goal is to have the following:</p>
  
  <p><strong>PRO:</strong> <code>http://localhost:9090/myapi/{version}</code></p>
  
  <p><strong>SB:</strong> <code>http://localhost:8080/myapi/{version}</code></p>
  
  <p>That is to say I would like to use the version field in the backend path.</p>
  
  <p><a href="https://i.stack.imgur.com/3GsCn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3GsCn.png" alt="enter image description here"></a></p>
  
  <p>However I am getting the following errors:</p>
  
  <blockquote>
    <p>Invalid Sandbox Endpoint URI. Please refer HTTP Endpoint documentation
    of the WSO2 ESB for details. </p>
    
    <p>Invalid Production Endpoint URI. Please
    refer HTTP Endpoint documentation of the WSO2 ESB for details.</p>
  </blockquote>
  
  <p>Is there any way to do this?</p>
  
  <p><strong>UPDATE:</strong> </p>
  
  <p>I have found the following article (<a href="https://docs.wso2.com/display/AM260/Map+the+Parameters+of+your+Backend+URLs+with+the+API+Publisher+URLs" rel="nofollow noreferrer">https://docs.wso2.com/display/AM260/Map+the+Parameters+of+your+Backend+URLs+with+the+API+Publisher+URLs</a>) which explains how to map values using the uri.var prefix. So now in my endpoints I have:</p>
  
  <p><strong>PRO:</strong> <code>http://localhost:9090/myapi/{uri.var.version}</code></p>
  
  <p><strong>SB:</strong> <code>http://localhost:8080/myapi/{uri.var.version}</code></p>
  
  <p>The problem now is that its value is empty.</p>