City List API
Bu yöntem, belirli bir ülke koduna ait şehirleri döndürür.
📍 Endpoint
GET {BaseURL}/common/common/city-list?countryCode=TR
| Özellik | Değer |
|---|---|
| URI | {BaseURL}/common/common/city-list?countryCode={countryCode} |
| Method | GET |
| Content-Type | application/json |
🔐 Yetkilendirme
Basic Auth zorunludur. MescoMg tarafından sağlanan API kimlik bilgilerini kullanın.
📋 Query Parametreleri
| Parametre | Tip | Açıklama |
|---|---|---|
countryCode | String | Şehirleri listelemek istediğiniz ülkenin kodu |
Request body gerekmez. Ülke kodu tanınmazsa API CityList yerine genel bir ResultType / ResultMessage yanıtı döndürebilir.
📥 Örnek Response
{
"Status": {
"Code": 200,
"Description": "Success"
},
"CityList": [
{
"Code": 36,
"Name": "Cam Ranh"
},
{
"Code": 37,
"Name": "Can Tho"
},
{
"Code": 40,
"Name": "cat ba"
}
]
}