title: How to return files in API JSON result?
body: <p>I am working on an REST API which returns, for example, a list of ebooks. Each ebook has many photos and one PDF. I have the name and url of each image file and pdf file. </p>
  
  <p>How should I include this information in a REST API response?<br>
  1. Have a property Photos and another Document?<br>
  2. Or simply one saying Files and specifying the file type?<br>
  3. Or some other way?  </p>
  
  <p>At the moment I have the following JSON:</p>
  
  <pre><code>{
    "ebooks": [
      { 
        "title": "ebook 1"
      },
      { 
        "title": "ebook 2"
      }
    ]  
  }
  </code></pre>
  
  <p>I am trying to have a standard way of doing this so it is consistence across my API endpoints.</p>