The ProductService API

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

Get Building Microservices with .NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.