cURL
curl --request GET \ --url https://b2b-api.markoub.dev/cities \ --header 'Authorization: Bearer <token>'
[ { "id": 1, "name": "Rabat", "latitude": "34.0132", "longitude": "-6.8332" } ]
Retrieve a list of cities from the database with their coordinates.
Default authentication mechanism
Whether to return the cities in Arabic, French or English. Defaults to French if not provided.
ar
fr
en
"fr"
A list of cities
The unique identifier of the city.
1
The name of the city.
"Rabat"
The latitude of the city.
"34.0132"
The longitude of the city.
"-6.8332"