The 7 RESTful routes!

Shubhangi Raj Agrawal
2 min readFeb 28, 2018

--

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.

--

--