title: Including Id in URI for PUT requests
body: <p>I was reading some documents about the appropriate use of URI's using rest services and I came across an example for basic GET .. DELETE requests.</p>
  
  <p>The example uri's were:</p>
  
  <p>Get all users</p>
  
  <pre><code>GET http://mydomain.org/api/users
  </code></pre>
  
  <p>Get specific user</p>
  
  <pre><code>GET http://mydomain.org/api/users/1
  </code></pre>
  
  <p>Update user</p>
  
  <pre><code>PUT http://mydomain.org/api/users/1
  </code></pre>
  
  <p>DELETE user</p>
  
  <pre><code>DELETE http://mydomain.org/api/users/1
  </code></pre>
  
  <p>A user resource would be either JSON or XML in the form of:</p>
  
  <pre><code>{
      Id: 1,
      FirstName: 'John',
      LastName: 'Doe'
  }
  </code></pre>
  
  <p>My question is this. To maintain REST principles, is it required to include the id of the resource within the URI for PUT requests?</p>