This microservice has six main functions exposed through an HTTP API component. It is the responsibility of this HTTP API component to handle all the HTTP requests for these functions.
These functions are:
API resource description |
API resource description |
GET /api/book |
Gets a list of the available books |
GET /api/book{category} |
Gets a list of the books for a category |
GET /api/book{name} |
Gets a list of the books by name |
GET /api/book{isbn} |
Gets a book as per the ISBN number |
GET /api/bookquantity{id} |
Gets the available stock for the intended book |
PUT /api/bookquantity{id, changecount} |
Increase or decrease the available stock quantity for a book |
The following image is visualizing tables of the catalog services: