การรับข้อมูล
ดึงข้อมูลประเทศ เที่ยวบิน โรงแรม และทัวร์
ดึงรายการ tour program ทั้งหมด
ดึงรายการ tour program ทั้งหมดพร้อม pagination โดย limit สูงสุดคือ 50 รายการต่อหน้า
| Method | GET |
| Path | /api/public/v1/tour-programs |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| Authorization | Header | string | Yes | Bearer <token> |
| page | Query | number | No | หน้าที่ต้องการ (เริ่มจาก 1) |
| limit | Query | number | No | จำนวนรายการต่อหน้า (default: 10, max: 50) |
ดึง tour program ตาม country
ดึงรายการ tour program ทั้งหมดของประเทศที่ระบุ (ไม่มี pagination) ใช้ country ID จาก endpoint /country
| Method | GET |
| Path | /api/public/v1/tour-programs/{countryId} |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| Authorization | Header | string | Yes | Bearer <token> |
| countryId | Path | string | Yes | รหัสประเทศ (country_id) ที่ต้องการดึงข้อมูล |
ดึงรายการประเทศทั้งหมด
ดึงรายการประเทศที่เปิดขายทัวร์ พร้อม tags และข้อมูลสำหรับใช้ filter tour programs
| Method | GET |
| Path | /api/public/v1/country |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| Authorization | Header | string | Yes | Bearer <token> |