Tours API Documentation
About: Tour Packages with Pricing
This API endpoint provides a comprehensive list of available tour packages, including details such as package name, description, pricing, and other relevant information. It is designed to help clients browse and filter tour packages to suit their preferences.
List Tours
GET /api/v1/tours
200 Returns list of all tours
Get Tour by ID
GET /api/v1/tours/{id}
200 Returns single tour detail
Create Tour
POST /api/v1/tours
201 Returns created tour
Request Body:
{
"tourId": "TA02",
"name": "Jeep Safari",
"rating": 9.0,
"price": 100,
"location": "Dubai"
}
Update Tour
PATCH /api/v1/tours/{id}
200 Returns updated tour details
Request Body:
{
"name": "Tour",
"price": 250,
"rating": 2
}
Delete Tour
DELETE /api/v1/tours/{id}
200 Returns status of deletion