title: How do you represent "thin" and "fat" versions of a RESTful resource?
body: <p>How would you model a resource that can have two different representations. For example, one representation may be "thin" withe most of its related resources accessible by links. Another representation may be "fat" where most of its related resources are embedded. The idea being, some clients don't mind having to make many calls to browse around the linked resources, but others want to get the data all at once.</p>
  
  <p>Consider a movie resource that is associated with a director, actors, etc. Perhaps the thin version of it has the movie title only, and to get the data for the director, list of actors, etc., one must make additional requests via the embedded links to them. Perhaps the fat version of it contains all the movie nested inside, including the director's data, the data for the various actor's, etc.</p>
  
  <p>How should one model this?</p>
  
  <p>I see a few options:</p>
  
  <ol>
  <li>these two representations are really two different resources and require different URIs</li>
  <li>these two representations are in fact the same resource, and you can select between the two representations via custom media types, for example <code>application/vnd.movie.thin+json</code> and <code>application/vnd.movie.fat+json</code>.</li>
  <li>these two representations are in fact the same resource, and selecting the different representations should be done with query parameters (e.g. <code>/movies/1?view=thin</code>).</li>
  <li>Something else...</li>
  </ol>
  
  <p>What do you consider the proper approach to this kind of API?</p>