title: CosmosDBInput binding of Azure Function is not using path Variable defined in HttpTrigger
body: <p>I have created a function with Kotlin using azure-functions-kotlin-archetype. I have created a Http Trigger and a cosmos input binding to read data from the cosmos. I have mentioned sql query also to fetch the data. I want to pass path variable to the http trigger which should be used as parameter in the query.
  As per Microsoft documentation I have defined the path parameter accordingly.
  <a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2-input?tabs=java#http-trigger-get-multiple-docs-from-route-data-using-sqlquery-java" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2-input?tabs=java#http-trigger-get-multiple-docs-from-route-data-using-sqlquery-java</a></p>
  <p>But I am getting blank response, means no data is fetched. If I hard code the parameter in the Sql query, I able to fetch the data. Can any one please tell me the issue here. The Function Code is as below</p>
  <pre><code>@FunctionName(&quot;GetData&quot;)
      fun run(
              @HttpTrigger(
                      name = &quot;req&quot;,
                      methods = [HttpMethod.GET],
                      authLevel = AuthorizationLevel.ANONYMOUS,
              route = &quot;/api/getItems/{id}/{qnt}&quot;
              )
              request: HttpRequestMessage&lt;Optional&lt;String&gt;&gt;,
              @CosmosDBInput(
                  name = &quot;cosmosdb&quot;,
                  databaseName = &quot;item-db&quot;,
                  collectionName = &quot;item&quot;,
                  sqlQuery = &quot;SELECT * FROM ITEM n where n.id= {id} &quot;
                               +&quot;and n.qnt = {qnt}&quot;,
                connectionStringSetting = &quot;Cosmos_DB_Connection_String&quot;
              )
              rs: Array&lt;String&gt;,
              context: ExecutionContext): HttpResponseMessage {
  
  
  
              return request
                      .createResponseBuilder(HttpStatus.OK)
                      .body(rs)
                      .build()
          }
  
  }
  </code></pre>