title: Swagger, Endpoints and Pathparameters
body: <p>TLDR: Multiple Pathparameters and Endpoints with Swagger</p>
  
  <p>What i would like to to is some API Endpoint like this:</p>
  
  <pre><code>/foo/{id}/bar
  </code></pre>
  
  <p>Now afaik <code>foo</code> or the first node in the path is defining the endpoint and also the resource to aqcuire. Therefore a FooApiServiceImpl is generated.  </p>
  
  <p>The generated ProjectsApiService stub looks like this atm:</p>
  
  <pre><code>@GET
  @Path("/{id}/bars") 
  ...
  public Response getBarsByFooId(@ApiParam(value = "The id of the foo with the  bars",required=true ) @PathParam("id") String id)
  throws NotFoundException {
      return delegate.getBarByFooId(id);
  }
  </code></pre>
  
  <p>Now my wished behaviour would be to GET all the <code>Bar</code> resources that are connectted to the <code>Foo</code> with the given <code>{id}</code>. Kinda like the reverse order. Is this somehow possible?</p>
  
  <p>If this is not possible... then would also like to ask, how can i get url nodes (foo, bar) that are not defined as <code>{xxx}</code> paramaters in brackets?</p>
  
  <p>Something like this:</p>
  
  <pre><code>public Response getBarsByFooId(String foo, String id, String bar)
  throws NotFoundException {
      return delegate.getBarByFooId(id);
  }
  </code></pre>