title: REST response - should I put the URL of the new resource in the header, body, or both?
body: <p>I have put together an API that responds to a POST request by putting the content of the new resource in the response body, and the URL of the new resource in the Location HTTP response header. </p>
  
  <p><strong>Sample request:</strong></p>
  
  <pre><code>POST /api/v1/widgets HTTP/1.1
  Content-type: application/json;
  Accept: application/json;
  
  {
      "name": "hugo@example.com",
      "price": "10",
  }
  </code></pre>
  
  <p><strong>Sample response:</strong></p>
  
  <pre><code>HTTP 201 Created
  Location: http://example.com/api/v1/widgets/123456
  
  {
      'widget': 
      {
          'id': "123456",
          'created': "2012-06-22T12:43:37+0100",
          'name': "hugo@example.com",
          'price': "10",
      },
  }
  </code></pre>
  
  <p>Someone has raised an issue that the URL should also be in the body of the response. Is there a best practice on this?</p>