Get Detail 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?id=(id)
URL : /api/island?slug=(slug)
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",
"destinations": [
{
"id": 19,
"name": "Cirebon",
"slug": "cirebon",
"image_url": "https://www.indonesia.travel/content/dam/indtravelrevamp/en/destinations/revision-2019/all-revision-destination/cirebonthumb.jpg",
"description": "Explore Cirebon's unique blend of Sundanese, Javanese, Chinese, Indian, Arab, and European cultures. A rich tapestry of heritage awaits",
"location": "Cirebon, Jawa Barat",
"vacation_province": {
"id": 10,
"name": "Jawa Barat",
"slug": "jawa-barat"
}
},
{
"id": 20,
"name": "Bogor",
"slug": "bogor",
"image_url": "https://www.indonesia.travel/content/dam/indtravelrevamp/en/destinations/revision-2019/all-revision-destination/bogorthumb.jpg",
"description": "Explore Bogor's pleasant climate and famous attractions, including the Indonesian Agricultural Institute and the Zoological Museum",
"location": "Bogor, Jawa Barat",
"vacation_province": {
"id": 10,
"name": "Jawa Barat",
"slug": "jawa-barat"
}
}
]
}
Response : 404 - Not Found
Not Found
Response : 500 - Server Error
Internal Server Error