2. Get Cities
Version 6.1 by Giorgi Mdivnishvili on 2024/02/27 16:39
Method - Get Cities
endpoint - https://testapi.rustaronline.com/api/Hotels/GetCities
The method returns the list of available cities.
{
"Code": "00",
"Message": "",
"Timestamp": "2023-12-04T12:00:28.9683447+04:00",
"Version": "r1",
"ResponseID": "ac10ee8b-f73b-4179-afa2-2e585ba4881d",
"Data": [
{
"cityid": "f5185fa3-3f56-44ed-bf6b-80386a33caa2",
"cityname": "Dubai",
"countrycode": "AE"
},
...
]
}
"Code": "00",
"Message": "",
"Timestamp": "2023-12-04T12:00:28.9683447+04:00",
"Version": "r1",
"ResponseID": "ac10ee8b-f73b-4179-afa2-2e585ba4881d",
"Data": [
{
"cityid": "f5185fa3-3f56-44ed-bf6b-80386a33caa2",
"cityname": "Dubai",
"countrycode": "AE"
},
...
]
}
Description of Response parameters
Value | Description |
cityid | GUID of the City where the hotel is located. |
cityname | string. Name of the city |
countrycode | string. ISO2 Country code |