title: URL design for GET resource in REST API for images
body: <p>I have a Rest API that allows users to POST to an endpoint to upload a photo:</p>
  
  <pre><code>POST /api/photos
  </code></pre>
  
  <p>The response would be as follows:</p>
  
  <pre><code>{
    "id": "1",
    "title": "my image"
    "url": "https://some_s3_url"
  }
  </code></pre>
  
  <p>The user can then access the photo metadata through the GET endpoint</p>
  
  <pre><code>GET /api/photos/1
  </code></pre>
  
  <p>What is the best way to model a url for getting the content of the image url? Note that I'd like to ensure the user has the ability to access this image, so requesting the s3 bucket url directly will not work here.</p>
  
  <p>I have considered doing something like:</p>
  
  <pre><code>GET /api/photos/1/content
  </code></pre>
  
  <p>Though that seemed hacky</p>