Get All Island

Get All 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/island

Response : 200 - OK

[
    {
        "id": 1,
        "name": "Jawa",
        "image_url": "https://www.indonesia.travel/content/dam/indtravelrevamp/en/destinations/Java.jpg",
        "created_at": "2023-10-23T11:57:08.13947+00:00",
        "slug": "jawa",
        "vacation_destination": [
            {
                "id": 19,
                "name": "Cirebon",
                "slug": "cirebon"
            },
            {
                "id": 20,
                "name": "Bogor",
                "slug": "bogor"
            }
        ]
    },
    {
        "id": 2,
        "name": "Bali",
        "image_url": "https://www.indonesia.travel/content/dam/indtravelrevamp/en/destinations/Bali.jpg",
        "created_at": "2023-10-23T11:57:08.13947+00:00",
        "slug": "bali",
        "vacation_destination": [
            {
                "id": 1,
                "name": "Kintamani: Bali's Scenic Gem",
                "slug": "kintamani-balis-scenic-gem"
            },
            {
                "id": 2,
                "name": "Bali",
                "slug": "bali"
            }
        ]
    }
]

Response : 404 - Not Found

Not Found

Response : 500 - Server Error

Internal Server Error