In this section, we will start building a RESTful to-do application. The application will allow users to perform Create, Read, Update, and Delete (CRUD) operations on their to-do list, using HTTP methods such as
DELETE. Besides those operations, we will implement one custom action to mark tasks as “done.”
What is RESTful?
Representational State Transfer (RESTful) is an architectural style to build web services that follow well-defined constraints and principles. It is an approach for creating scalable and flexible web APIs that different clients can consume. In RESTful architecture, resources are identified by Uniform Resource Identifiers (URIs). The operations performed on those resources are based on predefined HTTP methods (
DELETE, etc.). Every call to the API is stateless and contains all the information needed to perform the operation.
Fastify is an excellent choice to develop RESTful APIs, due to its...