The shopping cart microservice

This microservice will have the following functions exposed as HTTP endpoints for consumption:

API resource description API resource description
POST /api/book {customerid } Adds the specific book to the shopping cart of the customer
DELETE /api/book {customerid } Removes the book from the shopping cart of the customer
GET /api/book{customerid} Gets the list of books in the shopping cart of the customer
PUT /api/empty Removes all the books currently contained in the shopping cart.

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.