Re:PUT vs POST in REST
by ericmoritz on Sunday October 23, 2011 @10:36AM
(#3146191)
With POST you're creating a resource within the resource identified by the Request-URI. The server is responsible for
creating a URI for the new resource you created.
With PUT the client knows the resource's URI. The client uses it to create or
update the resource. The easiest why to visualize this is to think of a
filesystem
[ Parent
| on HN ]
To be precise, there's really nothing that you can determine from the resource you're POSTing to. A POST to /forum/http/ could create a new cat picture in /yaykittens/ for all we know.
It's meant to be a catchall method, used for anything the others don't specifically cover.