In our monolithic application, for the Product module, we were doing the following:
- Adding a new Product module
- Updating an existing Product module
- Deleting an existing Product module
- Retrieving a Product module
Now we will create ProductService; we require the following APIs:
API Resource | Description |
GET /api/Product | Get a list of products |
GET /api/Product{id} | Get a product |
PUT /api/Product{id} | Update an existing product |
DELETE /api/Product{id} | Delete an existing product |
POST /api/Product | Add a new product |