This endpoint allows clients to retrieve a curated list of trending destinations, specifically the topmost visited cities. The response includes essential details for each city, such as its unique identifier, name, and a visually appealing thumbnail.
The number of trending destinations to be retrieved can be specified using the count parameter. If no count is provided, the default is set to 5.
Sample request:
GET /trending-destinations?count=3
GET
/api/Cities/trending-destinations
curl \
-X GET http://api.example.com/api/Cities/trending-destinations \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
{
"id": "string",
"name": "string",
"country": "string",
"cityImage": {
"imageUrl": "string",
"alternativeText": "string"
}
}
]
Response examples (200)
[
{
"id": "string",
"name": "string",
"country": "string",
"cityImage": {
"imageUrl": "string",
"alternativeText": "string"
}
}
]