title: Using @RequestParam annotated method with swagger ui
body: <p>I am using <code>Springfox</code> libraries to generate documentation for REST service and display it in Swagger UI. I followed the directions in <a href="http://springfox.github.io/springfox/docs/current/" rel="noreferrer">Springfox documentation</a>.</p>
  
  <p>I have one controller, which uses parameters from query string and the method is mapped as following:</p>
  
  <pre><code>@ApiOperation(value = "")
  @RequestMapping(method = GET, value = "/customcollection/{id}/data")
  public Iterable&lt;CustomeType&gt; getData(@ApiParam(value = "The identifier of the time series.") 
      @PathVariable String id,
      @ApiParam(name = "startDate", value = "start date", defaultValue = "")
      @RequestParam("startDate") String startDate,
      @ApiParam(name = "endDate", value = "end date", defaultValue = "")
      @RequestParam("endDate") String endDate)
  </code></pre>
  
  <p>The resulting mapper in swagger-ui then displayed as:</p>
  
  <pre><code>GET /customcollection/{id}/data{?startDate,endDate}
  </code></pre>
  
  <p>Parameters are displayed correctly in the UI: <a href="https://i.stack.imgur.com/QO1cT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QO1cT.png" alt="enter image description here"></a></p>
  
  <p>But when I click on Try it Out, the request URL is misformed:</p>
  
  <p><a href="http://localhost:8080/customcollection/1/data" rel="noreferrer">http://localhost:8080/customcollection/1/data</a>{?startDate,endDate}?startDate=1&amp;endDate=2</p>
  
  <p>How can it be fixed?</p>