title: what should my URLs look like for this simple REST web service?
body: <p>I'm new to REST but I've built a simple web service and I'm having trouble finding a simple explaination of what URL format would be correct.</p>
  
  <p>The service allows to create an invoice and push it through a series of simple approval phases.</p>
  
  <p>(1) Read all invoices in an XML format:</p>
  
  <pre><code>GET: http://localhost/webapp/ws/invoices
  </code></pre>
  
  <p>(2) Read one invoice in an XML format (ex. invoice id = 555):</p>
  
  <pre><code>GET: http://localhost/webapp/ws/invoices/555
  </code></pre>
  
  <p>(3) Submit a new invoice:</p>
  
  <pre><code>POST: http://localhost/webapp/ws/invoices
  </code></pre>
  
  <p>With the invoice attributes ("userid", "totalprice", etc) are included like the POST parameters of a simple HTML form.</p>
  
  <p>(4) Approve an invoice:</p>
  
  <pre><code>POST: http://localhost/webapp/ws/invoices/action
  </code></pre>
  
  <p>With the action attributes (ex. "userid=123", invoiceid=567, "action=APPROVE" or "REJECT", etc) are included like the POST parameters of a simple HTML form.</p>
  
  <p>It works fine, but is that even close to what a RESTful web service is supposed to look like?</p>
  
  <p>Any advice is greatly appreciated, thanks.</p>
  
  <p>Rob</p>