BasicBooks
Books
These endpoints allow you to retrieve all books, a single book by its id, or a random book. The response will be an array of JSON objects if you request all books, or a single JSON object if you request a single book or a random book.
The Book model
Prop | Type | Default |
---|---|---|
id | integer | - |
title | string | - |
author | string | - |
genre | string | - |
description | string | - |
isbn | string | - |
image | object | - |
published | string | - |
publisher | string | - |
All books
GET/books
Retrieve all books.
Single book
GET/books/<id>
Retrieve a single book by its id.
Random book
GET/books/random
Retrieve a random book.