title: Different representations of one resource
body: <p>When i have a resource, let's say <code>customers/3</code> which returns the customer object and i want to return this object with different fields, or some other changes (for example let's say i need to have include in customer object also his latest purchase (for the sake of speed i dont want to do 2 different queries)).</p>
  
  <p>As i see it my options are:</p>
  
  <ul>
  <li><code>customers/3/with-latest-purchase</code></li>
  <li><code>customers/3?display=with-latest-purchase</code></li>
  </ul>
  
  <p>In the first option there is distinct URI for the new representation, but is this REALLY needed? Also how do i tell the client that this URI exist? </p>
  
  <p>In the second option there is GET parameter telling the server what kind of representation to return. The URI parameters can be explained through OPTIONS method and it is easier to tell client where to look for the data as all the representations are all in one place.</p>
  
  <p>So my question is which of these is better (more RESTful) and/or is there some better way to do this that i do not know about? </p>