Friday, January 27, 2012

PUT or POST: The REST of the Story (link)

Web service designers have tried for some time now to correlate CRUD (Create, Retrieve, Update and Delete) semantics with the Representational State Transfer (REST) verbs defined by the HTTP specification–GET, PUT, POST, DELETE, HEAD, etc. So often, developers will try to correlate these two concepts–CRUD and REST–using a one-to-one mapping of verbs from the two spaces, like this:
  • Create = PUT
  • Retrieve = GET
  • Update = POST
  • Delete = DELETE