Destination by Island

Total Destination by Island

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

Response : 200 - OK

[
    {
        "id": 6,
        "label": "Sumatera",
        "total": 28
    },
    {
        "id": 1,
        "label": "Jawa",
        "total": 27
    },
    {
        "id": 5,
        "label": "Sulawesi",
        "total": 13
    },
    {
        "id": 2,
        "label": "Bali",
        "total": 12
    },
    {
        "id": 4,
        "label": "Kalimantan",
        "total": 10
    },
    {
        "id": 7,
        "label": "Nusa Tenggara",
        "total": 6
    },
    {
        "id": 8,
        "label": "Papua",
        "total": 4
    },
    {
        "id": 3,
        "label": "Maluku",
        "total": 2
    }
]

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error