Books API

Reserve your favorite books with ease.

API Base URL: books-apis.vercel.app/api

API Endpoints:

GET/status

Check the current status of the API.

GET/books

Retrieve a list of available books.

GET/books/:bookId

Get details of a specific book by ID.

POST/token

Generate a token for authentication. Requires clientName and clientEmail in the body.

GET/orders

View all orders. Requires Bearer Token authorization.

POST/orders

Create a new order. Requires Bearer Token and bookId, customerName in the body.

GET/orders/:orderId

View details of a specific order by ID. Requires Bearer Token.

PATCH/orders/:orderId

Update an existing order. Requires Bearer Token and customerName in the body.

DELETE/orders/:orderId

Delete an existing order by ID. Requires Bearer Token.

Explore the source code on GitHub:

Books API Project