Saturday, August 14, 2010

HTTP Verbs Explained Using SQL

GET = select
POST = insert
PUT = insert or update where id = ...
DELETE = delete

Some people say PUT = update, but it's more like "update where id = ..., or if it doesn't exist, insert with id = ..."

No comments:

Post a Comment