title: Where to store resources URIs in a REST API
body: <p>I'm working on a REST API, and I can't find the best way to manage the resources URIs. When I query my API, I want something like that:</p>
  
  <pre><code>{
      'name':'foo',
      'id':100,
      'uri':'/path/to/the/resource/100'
  }
  </code></pre>
  
  <p>Should I store the resources URI in my database or should I generate in the code when the request is treated?</p>
  
  <p>Thanks</p>