Destinasi & Area Wisata
Dokumentasi API untuk mengeksplorasi daftar destinasi wisata berdasarkan wilayah dan provinsi di seluruh Indonesia.
Endpoint Overview
| Method | Endpoint | Deskripsi |
|---|---|---|
| GET | /destinations | Mengambil daftar wilayah destinasi dengan pagination. |
1. List Destinations
Mendapatkan daftar wilayah (kota/kabupaten) yang memiliki produk wisata aktif. Data mencakup jumlah produk per kategori (experience, attraction, homestay).
- URL:
/destinations - Method:
GET - Headers:
Authorization: Bearer {{token}} - Query Parameters:
page(default: 1): Nomor halaman.max(default: 10): Jumlah item per halaman.
- Response (200 OK):
{
"total_rows": 150,
"total_page": 15,
"current_page": 1,
"next_page": 2,
"rows": [
{
"title": "Jakarta Pusat",
"slug": "jakarta-pusat",
"cover_photo": "https://cdn.atourin.com/...",
"province": "DKI Jakarta",
"product_count": [
{ "type": "experience", "count": 25 },
{ "type": "attraction", "count": 12 },
{ "type": "homestay", "count": 8 }
]
},
{
"title": "Lombok Tengah",
"slug": "lombok-tengah",
"cover_photo": "https://cdn.atourin.com/...",
"province": "Nusa Tenggara Barat",
"product_count": [
{ "type": "experience", "count": 15 }
]
}
]
}
Fitur Utama:
- Product Counting: Menampilkan jumlah produk aktif secara real-time untuk setiap destinasi.
- Image Optimization: Menggunakan URL gambar yang sudah teroptimasi untuk beban server yang ringan.
- Pagination: Mendukung pengelolaan data dalam jumlah besar dengan parameter
pagedanmax.
🔥 Uji Coba API (Simulator)
Gunakan simulator di bawah ini untuk mencoba seluruh endpoint di atas secara langsung. Anda dapat mengubah URL, Method, Headers, dan Body sesuai kebutuhan.