| LEVEl | CASE |
|---|---|
| negara | negara |
| provinsi | provinsi |
| kabupaten | kabupaten |
| kecamanatan | kecamatan |
| desa | desa |
/v1/locations setelah perbaikan, sesuai drill-down per level. Misal kamu pilih Negara β Provinsi β Kabupaten β Kecamatan β Desa.GET /v1/locations?level=negara{
"data": [
{
"id": "uuid-indonesia",
"name": "Indonesia",
"continent": "Asia",
"updatedAt": "2025-09-05T02:00:00.000Z"
},
{
"id": "uuid-malaysia",
"name": "Malaysia",
"continent": "Asia",
"updatedAt": "2025-09-05T02:01:00.000Z"
}
]
}GET /v1/locations?level=provinsi&countryId=uuid-indonesia{
"data": [
{
"id": "uuid-ntb",
"name": "Nusa Tenggara Barat",
"country": "uuid-indonesia",
"updatedAt": "2025-09-05T02:05:00.000Z"
},
{
"id": "uuid-jabar",
"name": "Jawa Barat",
"country": "uuid-indonesia",
"updatedAt": "2025-09-05T02:06:00.000Z"
}
]
}GET /v1/locations?level=kabupaten&provinceId=uuid-ntb{
"data": [
{
"id": "uuid-lombok-tengah",
"name": "Lombok Tengah",
"province": "uuid-ntb",
"updatedAt": "2025-09-05T02:10:00.000Z"
},
{
"id": "uuid-lombok-timur",
"name": "Lombok Timur",
"province": "uuid-ntb",
"updatedAt": "2025-09-05T02:11:00.000Z"
}
]
}GET /v1/locations?level=kecamatan®encyId=uuid-lombok-tengah{
"data": [
{
"id": "uuid-praya-barat",
"name": "Praya Barat",
"regency": "uuid-lombok-tengah",
"updatedAt": "2025-09-05T02:15:00.000Z"
},
{
"id": "uuid-praya-timur",
"name": "Praya Timur",
"regency": "uuid-lombok-tengah",
"updatedAt": "2025-09-05T02:16:00.000Z"
}
]
}GET /v1/locations?level=desa&districtId=uuid-praya-barat{
"data": [
{
"id": "uuid-desa-a",
"name": "Desa A",
"district": "uuid-praya-barat",
"updatedAt": "2025-09-05T02:20:00.000Z"
},
{
"id": "uuid-desa-b",
"name": "Desa B",
"district": "uuid-praya-barat",
"updatedAt": "2025-09-05T02:21:00.000Z"
}
]
}id untuk value dan name untuk label.?level=district®encyId=uuid-lombok-tengah&perPage=10&search=Praya β hanya kecamatan yang mengandung βPrayaβ.curl --location --request GET 'https://v1.dev.bukalombok.com/v1/locations'{
"meta": {
"success": true,
"status": 200,
"message": "countrys retrieved"
},
"data": [
{
"id": "30393680-c1b6-4f9c-a697-479e6cee8157",
"name": "Indonesia",
"continent": "Asia",
"updatedAt": "2025-09-04T00:16:05.244Z"
}
],
"pagination": {
"totalItems": 0,
"perPage": 10,
"totalPages": 0,
"currentPage": 1
}
}