Endpoints

 

Status

GET /status

Returns the status of the API

 


List of books

GET /books

Return a list of books

Optional query parameters

  • type: fiction or non-fiction
  • limit: a number between 1 and 20

 


Get a single book

GET /books/:bookId

Retrieve detailed information about a book

 


Submit an order

POST /orders

Allows you to submit a new order. Requires authentication.

The request body needs to be in JSON format and include the following properties:

  • bookId - Integer - Required
  • customerName - String - Required