wiki defines REST as:
Representational state transfer (REST) is a software architectural style consisting of a coordinated set of architectural constraints applied to components, connectors, and data elements, within a distributed hypermedia system.
What???
As condescending as this is it is also a helpful explanation:
http://katgleason.tumblr.com/post/37836552900/how-i-explained-rest-to-my-wife
https://www.servage.net/blog/2013/04/08/rest-principles-explained/
http://rest.elkstein.org/
http://www.railstutorial.org/book/demo_app#table-demo_RESTful_users
HTTP request | URL | Action | Purpose |
GET | /users | index | page to list all users |
GET | /users/1 | show | page to show user with id 1 |
GET | /users/new | new | page to make a new user |
POST | /users | create | create a new user |
GET | /users/1/edit | edit | page to edit user with id 1 |
PATCH | /users/1 | update | update user with id 1 |
DELETE | /users/1 | destroy | delete user with id 1 |
No comments:
Post a Comment