In our monolithic application, for the Product module, we are 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 | Gets a list of products |
GET /api/Product{id} | Gets a product |
PUT /api/Product{id} | Updates an existing product |
DELETE /api/Product{id} | Deletes an existing product |
POST /api/Product | Adds a new product |