📚 Book API Documentation

Base URL: http://api.mccoln.com/api

Collection Endpoints

GET/books/
Retrieve a list of all books.
POST/books/
Create a new book record.

Request Body (JSON):

{
  "title": "The Hobbit",
  "pages": 310
}

Instance Endpoints

GET/books/{id}/
Retrieve details of a single book by its ID.
PUT/books/{id}/
Update an entire book record.

Request Body (JSON):

{
  "title": "The Hobbit: Special Edition",
  "pages": 320
}
DELETE/books/{id}/
Delete a book record permanently.

Response: 204 No Content