Re: REST and DELETE?
Jan Algermissen <[email protected]>
| Newsgroups | gmane.comp.web.services.rest |
|---|---|
| Message-ID | <[email protected]> |
On Aug 9, 2012, at 4:13 AM, Mark Baker wrote: > On Wed, Aug 8, 2012 at 4:53 PM, Jan Algermissen > <[email protected]> wrote: > > My thinking is based on [1] but surely a server side resource-cart is fine as well. Especially if you want to maintain it across browsers. > > Until you consider the fact that the "buy" message has to contain all > that state since it contains the expectations of the user. > > http://www.markbaker.ca/blog/2007/11/users-and-self-description/ > Yeah - certainly the checkout has to be sth like GET /user/fred/cart <cart> ... </cart> and then: POST /orders/ <cart> .... </cart> And *not* POST /user/fred/cart?placeOrder Content-Length: 0 http://algermissen.blogspot.de/2010/03/why-resources-are-rest-anti-pattern.html Jan > Mark. > ------------------------------------ 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/