3. GetDepartureCities

Version 6.1 by Giorgi Mdivnishvili on 2023/12/26 09:34

Method Description

This method returns data about destination cities.
To call the method, the country code must be passed as a parameter in the header and then a list of destination cities of the chosen country will be returned with all the necessary data.

Endpoint URL - [GET]

Request Parameters

Request Body

none

Response Body

[
  {
   "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
   "cityName": "string",
   "state": "string",
   "note": "string",
   "countryCode": "string",
   "iataCode": "string",
   "timeZoneOffset": 0
  }
]

example

 {
       "cityUID": "8aa860fd-1899-4253-ad52-0700c5339d70",
       "cityName": "Aktau",
       "state": "",
       "countryCode": "KZ",
       "timeZoneOffset": 5
    },
    {
       "cityUID": "f0ba6324-f337-405c-8cc7-23d62cf664e8",
       "cityName": "Almaty",
       "state": "",
       "countryCode": "KZ",
       "timeZoneOffset": 6
    },
    {
       "cityUID": "5efe9cfb-a9a0-4f99-93f5-42716e4ccbb7",
       "cityName": "Astana",
       "state": "",
       "note": "Added from RustarOnline",
       "countryCode": "KZ",
       "timeZoneOffset": 6
    },
    {
       "cityUID": "3bd6976b-b9dd-4086-96aa-5a4581560d19",
       "cityName": "Atyrau",
       "state": "",
       "countryCode": "KZ",
       "timeZoneOffset": 5
    },

Schema

Success

[City{

cityUIDstring($uuid)
cityNamestring
nullable: true
statestring
nullable: true
notestring
nullable: true
countryCodestring
nullable: true
iataCodestring
nullable: true
timeZoneOffsetinteger($int32)
nullable: true

}]