title: Passing dynamic query params and path params in http request connector
body: <p>I am looking to pass list of query params and path params to http request mule connector. The input which is coming to this connector is a List of pojo which contains the value of query and path params. </p>
  
  <p>The http request connector looks something like below:</p>
  
  <pre><code>&lt;http:request config-ref="HTTP_Request_Configuration" path="/rates/api/v1/rates/{in}.csv" method="GET" doc:name="End_HTTP request"&gt;
  &lt;http:request-builder&gt;
      &lt;http:query-param paramName="api_key"
          value="abcde" /&gt;
      &lt;http:query-param paramName="quote" value={target_currency} /&gt;
      &lt;http:query-param paramName="date" value={date} /&gt;
      &lt;http:query-param paramName="fields" value="averages" /&gt;
      &lt;http:uri-param paramName="in" value={source_currency} /&gt;
  &lt;/http:request-builder&gt;
  </code></pre>
  
  <p></p>
  
  <p>The pojo class looks like this:</p>
  
  <pre><code>public class Data {
  
      private String sourceCurrency;
      private String targetCurrency;
      private String date = (new SimpleDateFormat("yyyy-MM-dd")).format(new Date());
  
      public Data() {
      }
  
      public String getSourceCurrency() {
          return sourceCurrency;
      }
  
      public void setSourceCurrency(String sourceCurrency) {
          this.sourceCurrency = sourceCurrency;
      }
  
      public String getTargetCurrency() {
          return targetCurrency;
      }
  
      public void setTargetCurrency(String targetCurrency) {
          this.targetCurrency = targetCurrency;
      }
  
      public String getDate() {
  
          return date;
      }
  }
  </code></pre>
  
  <p>If the input to http request connector is the object of Data class then how to set the query and path params.</p>
  
  <p>Can someone please help me with an example?</p>
  
  <p>Thank you.</p>
  
  <p>Sumved</p>