The 7 RESTful routes!

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.



Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade