Destination
Vùng/tỉnh du lịch (Phase 1 = Hà Giang)
Collection: destinationsEndpoints
GET/api/v1/destinationsList all Destination▾
GET/api/v1/destinations/:idGet single by ID▾
POST/api/v1/destinationsCreate new Destination▾
PUT/api/v1/destinations/:idUpdate Destination▾
DELETE/api/v1/destinations/:idDelete Destination▾
Fields
| Field | Type | Description | |
|---|---|---|---|
| name | string | required | Tên hiển thị |
| subtitle | string | — | Phụ đề |
| description | string | — | Mô tả ngắn |
| country | string | — | Quốc gia |
| province | string | — | Tỉnh/thành |
| coverImageId | string | — | Media ID ảnh cover |
| heroImageId | string | — | Media ID ảnh hero |
| bannerImageId | string | — | Media ID banner |
| gallery | string[] | — | Mảng Media IDs |
| gpsLat | number | — | Vĩ độ tâm điểm |
| gpsLng | number | — | Kinh độ tâm điểm |
| gpsRadiusKm | number | — | Bán kính geofence (km) |
| boundary | GeoJSON | — | Polygon { type, coordinates } |
| isActive | boolean | required | Hiển thị cho user |
| isFeatured | boolean | — | Đánh dấu nổi bật |
| sortOrder | number | required | Thứ tự hiển thị |
| publishDate | ISO 8601 | — | Ngày xuất bản |
| status | string | required | draft | published | archived |
Example Response
{
"id": "dest-hagiang-001",
"name": "Hà Giang",
"subtitle": "Vùng cao nguyên đá",
"country": "Vietnam",
"province": "Ha Giang",
"gpsLat": 23.2765,
"gpsLng": 105.3542,
"isActive": true,
"status": "published"
}