title: Adding parameters to the endpoint url wso2 esb
body: <p>I am new to the WSO2 esb. I want to create a api in which i want to add a dynamic parameter from api Url to endpoint url.</p>
  
  <p>My end point url is like <code>http://example.com/api/sync/{session_id}.json</code></p>
  
  <p>I tried to create api like </p>
  
  <pre><code>&lt;api name="rest" context="/sync"&gt;
            &lt;resource methods="GET" uri-template="/{id}"&gt;
               &lt;inSequence&gt;
               &lt;log level="full"&gt;
                  &lt;property xmlns:ns="http://org.apache.synapse/xsd"
                            name="uri.var.session"
                            expression="get-property('uri.var.id')"
                            scope="axis2"/&gt;
                  &lt;/log&gt;
                  &lt;property name="REST_URL_POSTFIX" scope="axis2" action="remove"/&gt;
                  &lt;send&gt;
                     &lt;endpoint name="Mecars"&gt;
                        &lt;http trace="enable"
                              method="get"
                              uri-template="http://example.com/sync/{+uri.var.session}.json"/&gt;
                     &lt;/endpoint&gt;
                  &lt;/send&gt;
              &lt;/inSequence&gt;
            &lt;/resource&gt;
         &lt;/api&gt;
  </code></pre>
  
  <p>In log i get the value of  uri.var.session But on the endpoint Uri-template it is not appending.</p>
  
  <p>Please guid me how append the {id} value in the api uri-template to end point uri-template?</p>