My Cities API
  1. Cities
My Cities API
  • Cities
    • create
      POST
    • getAll
      GET
    • getById
      GET
    • getCityBuildings
      GET
    • update
      PUT
    • delete
      DELETE
  • Buildings
    • findAll
      GET
    • create
      POST
    • findById
      GET
    • update
      PUT
    • delete
      DELETE
  • BuildingController
    • addPhotos
      POST
    • deletePhoto
      DELETE
  • CityController
    • getById
      GET
    • update
      PUT
  • Schemas
    • CityDto
    • MapString
    • Address
    • BuildingDto
    • GpsCoordinates
    • BuildingUpdateDto
    • CityUpdateDto
  1. Cities

create

POST
/api/cities

Request

Body Params application/json

Examples

Responses

🟢200
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://my-cities.domozone.com/api/cities' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": 0,
    "name": "string",
    "country": "FRANCE"
}'
Response Response Example
成功示例
{
  "id": 0,
  "name": "",
  "country": ""
}
Modified at 2026-02-03 15:16:09
Next
getAll
Built with