Description

This is an api to fetch books

Base URL

The base URL for all API requests is:

https://example-library-api.com

Endpoints

GET /books

Returns a list of all books in the library.

Parameters

Response

Returns a JSON object with the following properties:

Example

Request:

GET /books?limit=5&offset=10

Response:

{
    "count": 50,
    "results": [
        {
            "id": 11,
            "title": "The Great Gatsby",
            "author": "F. Scott Fitzgerald",
            "description": "A novel about the decadent excesses of the Jazz Age.",
            "publication_date": "1925-04-10"
        },
        {
            "id": 12,
            "title": "To Kill a Mockingbird",
            "author": "Harper Lee",
            "description": "A novel about racial injustice in the American South.",
            "publication_date": "1960-07-11"
        },
        ...
    ]
}