What is REST?
REST (i.e. Representation State Transfer) is an architectural style for defining our routes. It is a way of mapping HTTP routes and the CRUD functionalities.
What are routes?
Routes are the code that are responsible for listening and receiving requests and then deciding what to send back.
What is CRUD?
When building APIs, we want to provide the four basic types of functionality. There must be a way to Create, Read, Update, and Delete resources.
In a REST environment, CRUD often corresponds to the HTTP methods POST, GET, PUT, and DELETE, respectively.
The 7 RESTful routes
How this helps?
By following this pattern, you don’t have to reinvent the wheel every time you build a new CRUD app. The routes and method names have already been decided, so you can just focus on the app itself.
Since all CRUD apps are capable of doing the same four basic actions, these routes can be used for all your projects.
Checkout my RESTfulBlogApp repo on github page. It is a fully functional CRUD app, built using Node.js.
Also, for more information on CRUD and REST API browse through the following articles.