title: Java REST - Filter information to return
body: <p>Is there a design pattern or a well known solution to design a REST Service where the front-end of the app may call a same webservice for different information on an object.</p>
  
  <p>Example:</p>
  
  <pre><code>WebServiceFull.class
  
  @PATH('/car/')
  public Response getCarInformation(@PathParam('id') long carId) {
     // Call Service/DAO
     // return the complete Car Object (may contain 50 properties for instance (color, size, age, factory, brand, ....)
  }
  </code></pre>
  
  <p>What I'm wondering if possible/good:</p>
  
  <pre><code>WebServiceWanted.class
  @PATH('/car/')
  public Response getCarInformation(@PathParam('id') long carId, @QueryParam('info') List&lt;String&gt; infoWanted) {
     // Call Service/DAO with the List
     // Browse through the given list to only get from DataBase the needed info
     // return the partially complete Car Object
  }
  </code></pre>