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.

 

The following image is visualizing all supporting tables for the shopping-cart service: