Alex Rivera | Logout

Which HTTP methods match up to which CRUD methods?

Asked 2011-06-01T14:57:08.997
232

In RESTful style programming, we should use HTTP methods as our building blocks. I'm a little confused though which methods match up to the classic CRUD methods. GET/Read and DELETE/Delete are obvious enough.

However, what is the difference between PUT/POST? Do they match one to one with Create and Update?

Edit
Report

1 Answer

3

Generally speaking, this is the pattern I use:

  • HTTP GET - SELECT/Request
  • HTTP PUT - UPDATE
  • HTTP POST - INSERT/Create
  • HTTP DELETE - DELETE
answered 2011-06-01T15:00:52.433

Your Answer