At the moment, the current implementation in the Catalog.API project allows us to read, and modify the Item entity and its relationship with the Genre and Artist entities. In this section, we will enable a client to list and add the Genre and Artist entities. Therefore, we will extend the APIs that allow a client to interact with these entities. This implementation requires us to act on the full stack of the web service; additionally, it involves the Catalog.Infrastructure, the Catalog.Domain, and the Catalog.API projects. Before we begin, let's take a look at the routes we are going to implement:
Verb | Path | Description |
GET | /api/artists |
Retrieves all the artists present in the database |
GET | /api/artist/{id} |
Retrieves the artist with the corresponding ID |
GET | /api/artist/{id}/items/ |
Retrieves the items with the corresponding artist ID... |