| Action | Method | Resource | Description |
|---|
| Get all | GET | /countries/:country_id/cities | Get all cities with country_id. |
| Get | GET | /countries/:country_id/cities/:city_id | Get city with id country_id and city_id. |
| Create | POST | /countries/:country_id/cities | Create a city with country_id. |
| Update | PUT | /countries/:country_id/cities/:city_id | Update city with country_id and city_id. |
| Delete | DELETE | /countries/:country_id/cities/:city_id | Delete city with country_id and city_id. |
The city model is composed of the following attributes:
| Attribute | Type | Required | Description | Whereable |
|---|
| name | string | no, required to create. | The city's name. | Yes |
| administrator_id | integer | no | The city's administrator. (User ID) | Yes |
| enabled | boolean | no | The city's status. | Yes |