Re: URI design

Jan Algermissen <[email protected]>
Newsgroups gmane.comp.web.services.rest
Message-ID <[email protected]>
On Nov 18, 2012, at 4:49 AM, Max Toro <[email protected]> wrote:

> Found this statement on the web:
> "Implementing a http://www.mysite.com/invoice/add URI is not
> considered a REST compliant practice."
> 
> What do you guys think?

What the quote is trying to say is, I guess, that designing interactions in the spirit of RPC (here: InvoceService.add(invoice)) is not RESTful.

'Correct' would be sth like

POST /invoices

Content-type: application/foo.invoice

<invoice> ... </invoice>

You do not need an 'add' semantic.


As for the URI string per se: that is opaque and meaningless (as Erik and Steve already noted).

Jan





> --
> Max Toro
> 



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/rest-discuss/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/rest-discuss/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.