Implementing with REST
In the previous chapter, we created a simple database and object (Car
) to interact with. In this chapter, we’ll look at the Representation State Transfer (REST) protocol and how it is used in APIs. REST is the most popular protocol for creating APIs.
We will see how REST contributes to creating a client/server architecture, and with it, desirable separation of concerns. We will cover the following topics in this chapter:
- Understanding what REST is
- Looking at standard web protocols
- The first implementation of a REST API
- What Data Transfer Objects (DTOs) are and how to use them
- Using Postman as our frontend
By the time you finish this chapter, you will understand the fundamentals of creating simple APIs.