Total Destination by Province
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/destination-by-province
Response : 200 - OK
[
{
"id": 15,
"label": "Bali",
"total": 12
},
{
"id": 11,
"label": "Jawa Tengah",
"total": 8
},
{
"id": 8,
"label": "Kepulauan Riau",
"total": 6
},
{
"id": 13,
"label": "Jawa Timur",
"total": 6
},
{
"id": 2,
"label": "Sumatera Utara",
"total": 5
},
{
"id": 10,
"label": "Jawa Barat",
"total": 5
},
{
"id": 23,
"label": "Sulawesi Utara",
"total": 5
},
{
"id": 1,
"label": "Aceh",
"total": 4
},
{
"id": 17,
"label": "Nusa Tenggara Timur",
"total": 4
},
{
"id": 4,
"label": "Riau",
"total": 3
}
]
Response : 404 - Not Found
Not Found
Response : 500 - Server Error
Internal Server Error