Get Cities
curl --request GET \
--url https://testapi.kravata.co/api/helpers/citiesimport requests
url = "https://testapi.kravata.co/api/helpers/cities"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://testapi.kravata.co/api/helpers/cities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": 3,
"name": "Cartagena",
"department": "Bolivar",
"countryId": 8
},
{
"id": 4,
"name": "Armenia",
"department": "Quindio",
"countryId": 8
},
{
"id": 5,
"name": "Nechi",
"department": "Antioquia",
"countryId": 8
}
]Accounts
Get Cities
Lists the cities. Use the name in constitutionCity when registering a user, and the id where a city ID is required.
This endpoint is public: it does not require an access token.
Response
An array of cities:
| Field | Description |
|---|---|
| id | City identifier. |
| name | City name. |
| department | Department, state or province. |
| countryId | Country of the city. |
GET
/
api
/
helpers
/
cities
Get Cities
curl --request GET \
--url https://testapi.kravata.co/api/helpers/citiesimport requests
url = "https://testapi.kravata.co/api/helpers/cities"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://testapi.kravata.co/api/helpers/cities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"id": 3,
"name": "Cartagena",
"department": "Bolivar",
"countryId": 8
},
{
"id": 4,
"name": "Armenia",
"department": "Quindio",
"countryId": 8
},
{
"id": 5,
"name": "Nechi",
"department": "Antioquia",
"countryId": 8
}
]
