Base URL
Get All Destinations
Retrieve a list of all destinations in the platform.
Response
Array of destination objects
Example
Get Destination by ID
Retrieve details of a specific destination by its ID.
Path Parameters
The unique identifier of the destination
Response
Returns a single destination object with the same structure as described in Get All Destinations.Example
Create Destination
Create a new destination in the system.
Request Body
City name
Country name
Description of the destination
Whether this destination should be marked as favorite
Response
Returns the created destination object including the generateddestinationId.
Example
Update Destination
Update an existing destination by its ID.
Path Parameters
The unique identifier of the destination to update
Request Body
Accepts the same fields as Create Destination. All fields are optional - only include fields you want to update.City name
Country name
Description of the destination
Whether this destination should be marked as favorite
Response
Returns the updated destination object.Example
Delete Destination
Delete a destination by its ID.
Path Parameters
The unique identifier of the destination to delete
Response
Returns the deleted destination object.Example
Add Tour to Destination
Associate a tour with a destination.
Path Parameters
The unique identifier of the destination