title: REST API - GET Method with input parameter as JAVA Object in body
body: <p>That's my current REST GET method.</p>
  
  <pre><code>@GET
  @Path("/URI/{input1}")
  @Produces(MediaType.APPLICATION_JSON)
  public List&lt;T&gt; getDetails(@PathParam("input1") String input1) throws ServiceException;
  </code></pre>
  
  <p>Now I want to add 3 more input parameters. Instead of adding all 4 parameters as pathparams, can I create a POJO object with all 4 input parameters and pass that POJO to GET method like this</p>
  
  <pre><code>@GET
  @Path("/URI")
  @Produces(MediaType.APPLICATION_JSON)
  public List&lt;T&gt; getDetails(InputPojo input) throws ServiceException;
  </code></pre>
  
  <p>POJO class with input parameters:</p>
  
  <pre><code>class InputPojo {
      String input1;
      String input2;
      String input3;
      // Getters and Setters.
  }
  </code></pre>
  
  <p>Or is this against REST GET specification and I cannot use Java POJO object as input parameter?</p>