City List API
This method is used to get the list of cities in a specific country.
π Endpointβ
GET https://mg.mescogo.com/gw/common/common/city-list?countryCode=TR
| Property | Value |
|---|---|
| URI | BaseURL/common/common/city-list?countryCode={countryCode} |
| Method | GET |
| Content-Type | application/json |
π Authorizationβ
Basic Auth is required. Use the API credentials provided by MescoMg.
π Query Parametersβ
| Parameter | Type | Description |
|---|---|---|
countryCode | String | Country code to list cities |
π₯ Example Responseβ
{
"Status": {
"Code": 200,
"Description": "Success"
},
"CityList": [
{
"Code": 36,
"Name": "Cam Ranh"
},
{
"Code": 37,
"Name": "Can Tho"
},
{
"Code": 40,
"Name": "cat ba"
}
]
}