Quote by Author

Total Quote 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/quote-by-author

Response : 200 - OK

[
    {
        "id": 2,
        "label": "J.K. Rowling",
        "total": 16
    },
    {
        "id": 10,
        "label": "John Green",
        "total": 16
    },
    {
        "id": 48,
        "label": "Mark Twain",
        "total": 11
    },
    {
        "id": 13,
        "label": "Oscar Wilde",
        "total": 10
    },
    {
        "id": 217,
        "label": "Albert Einstein",
        "total": 9
    },
    {
        "id": 233,
        "label": "Marilyn Monroe",
        "total": 8
    },
    {
        "id": 29,
        "label": "Cassandra Clare",
        "total": 7
    },
    {
        "id": 52,
        "label": "Dr. Seuss",
        "total": 7
    },
    {
        "id": 89,
        "label": "Nicholas Sparks",
        "total": 7
    },
    {
        "id": 9,
        "label": "C.S. Lewis",
        "total": 6
    }
]

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error