title: URL design: http://domain/app/document123/edit or http://domain/app/edit/document123?
body: <p>Let's say I have an app and in that app I need to view and edit "documents".  I was thinking of this URL design.</p>
  
  <ol>
  <li><p>To pull up the default view of document with the ID "x123":</p>
  
  <p><a href="http://domain/app/document-x123" rel="nofollow noreferrer">http://domain/app/document-x123</a></p></li>
  <li><p>To edit the same document:</p>
  
  <p><a href="http://domain/app/document-x123/edit" rel="nofollow noreferrer">http://domain/app/document-x123/edit</a></p></li>
  <li><p>Delete</p>
  
  <p><a href="http://domain/app/document-x123/delete" rel="nofollow noreferrer">http://domain/app/document-x123/delete</a></p></li>
  </ol>
  
  <p>This is more from my thinking about a document as an object in an OO point of view (e.g. "object.Action()").  Is this a bad thing?  Will I run into trouble?  i.e. would it be better to have #s 2 and 3 as the following?</p>
  
  <p>1.</p>
  
  <pre><code>http://domain/app/edit/document-x123
  </code></pre>
  
  <p>2.</p>
  
  <pre><code>http://domain/app/delete/document-x123
  </code></pre>