On Jan 1, 2007, at 11:05 AM, Ian Bicking wrote:

I'm guessing this is because a POST to a individual resource is meaningless in RESTful applications. You can PUT to a specific resource to update it, DELETE the resource, or GET the resource. Under a typical RESTful setup, you POST to the resource collection to add new members. (Atom Publishing Protocol serves as the best model for a RESTful app I believe, which is what this setup duplicates).

POST isn't meaningless; PUT can only be used for direct updates on an object, everything else is done as a POST. PUT can also be used to create objects; APP doesn't use that, because it lets the store control the URL space, but in contrast WebDAV does use PUT to create resources.

POST might be used for simple kinds of updates -- e.g., increment a counter -- or other kinds of control situations. It's not particularly unRESTful IMHO.

I was referring to using a POST against a member resource. Not POST in general. Of course, who knows if the Restafarians would consider WebDAV a RESTful service. The REST religion has many branches, they don't always agree. :)

Cheers,
Ben

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to