Book by Genre

Total Book by Genre

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-genre

Response : 200 - OK

[
    {
        "id": 11,
        "label": "Fiction",
        "total": 281
    },
    {
        "id": 5,
        "label": "Classics",
        "total": 200
    },
    {
        "id": 10,
        "label": "Fantasy",
        "total": 137
    },
    {
        "id": 25,
        "label": "Romance",
        "total": 71
    },
    {
        "id": 7,
        "label": "Contemporary",
        "total": 39
    },
    {
        "id": 18,
        "label": "Mystery",
        "total": 32
    },
    {
        "id": 29,
        "label": "Thriller",
        "total": 23
    },
    {
        "id": 20,
        "label": "Paranormal",
        "total": 22
    },
    {
        "id": 13,
        "label": "Horror",
        "total": 20
    },
    {
        "id": 21,
        "label": "Philosophy",
        "total": 17
    }
]

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error