GET api city {city_uuid} - raianul/gridscale GitHub Wiki
Get a Single City by UUID
Retrieve details of a specific city based on its UUID.
Endpoint
GET http://127.0.0.1:1337/api/city/{city_uuid}
Path Parameters
- city_uuid (required): The unique identifier (UUID format) of the city.
Usage Example
cURL Request
curl -X GET "http://127.0.0.1:1337/api/city/ecdac410-7861-4048-aaef-5dc3aa4be838" -H "accept: application/json"
Response
{
"city_uuid": "ecdac410-7861-4048-aaef-5dc3aa4be838",
"name": "Berlin",
"geo_location_latitude": 80,
"geo_location_longitude": 100,
"beauty": "ugly",
"population": 3000,
"allied_cities": [
"57734906-5f0b-48bb-9126-2ad63f2a86ee"
],
"allied_power": 3300
}