Conventional wisdom says that REST APIs should be implemented as follows:
-
GET
— read -
POST
— add -
PUT
/PATCH
— modify -
DELETE
— remove
This mostly works well. Query parameters can be used to supply arguments for GET
and DELETE
operations. POST
s can use either URL-encoded or multipart form data, standard encodings supported by nearly all web browsers, and other HTTP clients.