Get Total Movie by Category
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/category/total-movie
Response : 200 - OK
[
{
"id": 1,
"name": "Action",
"total": 150
},
{
"id": 2,
"name": "Adventure",
"total": 90
}
]
Response : 404 - Not Found
Not Found
Response : 500 - Server Error
Internal Server Error