Kind of hot topic. Expect an explosion of answers;)
REST works on the principle of using HTTP request methods to determine the action of an application (REST server) on an object. Usually 4 HTTP methods are used: GET, POST, PUT and DELETE.
, , , , . URL- REST http://mydomain.com/services/user
, GET http://mydomain.com/services/user/someuserid.
, POST http://mydomain.com/services/user, .
, PUT http://mydomain.com/services/user/someuserid. , .
, DELETE http://mydomain.com/services/user/someuserid
, 4 HTTP- , , , RESTful:
- GET == get, fetch, retrieve
- POST == create, add
- PUT == ,
- DELETE == ,