December 2019
Intermediate to advanced
510 pages
11h 33m
English
This section focuses on building the routes to read, writing the catalog data, and exposing the functionalities we already built in the domain layer using the HTTP protocol. Our controller will include the verbs listed in the following routing table:
| Verb | Path | Description |
| GET | /api/items |
Retrieves all the items present in our catalog |
| GET | /api/items/{id} |
Retrieves the item with the corresponding ID |
| POST | /api/items/ |
Creates a new item by taking the body payload of the request |
| PUT | /api/items/{id} |
Updates the item with the corresponding ID |
The preceding routes allow web service consumers to get, add, and update the Item entities. Before starting the implementation, let's look at an overview ...