City List API
This method returns the cities for a specific country code.
π Endpointβ
GET {BaseURL}/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 |
No request body is required. If the country code is not recognized, the API can return a generic ResultType / ResultMessage response instead of CityList.
π₯ Example Responseβ
{
"Status": {
"Code": 200,
"Description": "Success"
},
"CityList": [
{
"Code": 36,
"Name": "Cam Ranh"
},
{
"Code": 37,
"Name": "Can Tho"
},
{
"Code": 40,
"Name": "cat ba"
}
]
}