title: restful post with additional url parameters?
body: <p>I have a web service which consumes a json request and outputs a json response.  I have an issue where the customer needs to send an additional parameter in the url that can't be in the json body.  Is there a way to do that?</p>
  
  <p>For example, here is the method of a @WebService that consumes the incoming json request:</p>
  
  <pre><code>    @POST
      @Path("/bsghandles")
      @Consumes(MediaType.APPLICATION_JSON)
      @Produces(MediaType.APPLICATION_JSON)
      public BsgHandleResponse getBsgHandlesJson(BsgHandleRequest obj) {
          HttpServletRequest request = getRequestObject();
  
          return processGetBsgHandleByRateCode("key", obj.getRateCodes(), obj.getCorp(), 
              obj.getHeadend(), obj.getEquipmentProtocolAiu(), obj.getEquipmentTypeAiu(), request);
  
      }
  </code></pre>
  
  <p>Notice that "key" is a hard-coded parameter.  I need that parameter to be passed to it by the user in the url, but not the json structure.  Is there a way to do that?</p>