Book by Author

Total Book by Author

To get the data in the specified collection. If no parameters are passed, it lists all of them. Otherwise, it lists the documents in the collection matching the specified parameters:

Method : GET

URL : /api/statistics/book-by-author

Response : 200 - OK

[
    {
        "id": 2,
        "label": "J.K. Rowling",
        "total": 7
    },
    {
        "id": 22,
        "label": "Rick Riordan",
        "total": 6
    },
    {
        "id": 61,
        "label": "Stephen King",
        "total": 6
    },
    {
        "id": 79,
        "label": "Richelle Mead",
        "total": 6
    },
    {
        "id": 8,
        "label": "J.R.R. Tolkien",
        "total": 5
    },
    {
        "id": 29,
        "label": "Cassandra Clare",
        "total": 5
    },
    {
        "id": 52,
        "label": "Dr. Seuss",
        "total": 5
    },
    {
        "id": 1,
        "label": "Suzanne Collins",
        "total": 4
    },
    {
        "id": 27,
        "label": "William Shakespeare",
        "total": 4
    },
    {
        "id": 54,
        "label": "Charles Dickens",
        "total": 4
    }
]

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error