Path parameters

  • id string(uuid) Required

    The id of the city

Responses

  • Returns the city with the given id

    Hide response attributes Show response attributes object
    • id string(uuid)
    • creationDate string(date-time)
    • lastModified string(date-time)
    • name string | null
    • country string | null
    • postOffice string | null
    • numberOfHotels integer(int32)
    • Additional properties are NOT allowed
    Hide response attributes Show response attributes object
    • id string(uuid)
    • creationDate string(date-time)
    • lastModified string(date-time)
    • name string | null
    • country string | null
    • postOffice string | null
    • numberOfHotels integer(int32)
    • Additional properties are NOT allowed
    Hide response attributes Show response attributes object
    • id string(uuid)
    • creationDate string(date-time)
    • lastModified string(date-time)
    • name string | null
    • country string | null
    • postOffice string | null
    • numberOfHotels integer(int32)
    • Additional properties are NOT allowed
  • 404

    If the city is not found

GET /api/Cities/{id}
curl \
 -X GET http://api.example.com/api/Cities/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "id": "string",
  "creationDate": "2024-05-04T09:42:00+00:00",
  "lastModified": "2024-05-04T09:42:00+00:00",
  "name": "string",
  "country": "string",
  "postOffice": "string",
  "numberOfHotels": 42
}
Response examples (200)
{
  "id": "string",
  "creationDate": "2025-05-04T09:42:00Z",
  "lastModified": "2025-05-04T09:42:00Z",
  "name": "string",
  "country": "string",
  "postOffice": "string",
  "numberOfHotels": 42
}