Get Total Book by Genre

Get 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/genre/total-book

Response : 200 - OK

[
	{
		"id": 11,
		"label": "Fiction",
		"slug": "fiction",
		"total": 281
	},
	{
		"id": 5,
		"label": "Classics",
		"slug": "classics",
		"total": 200
	}
]

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error