Departments and cities form the two-level geographic hierarchy that the SolSQL API uses to classify places. Each city belongs to exactly one department via itsDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jparra-amell/api_solsql/llms.txt
Use this file to discover all available pages before exploring further.
Department_id field, so you must create a department before you can create a city inside it.
Departments
GET /api/Departments
Returns all departments in the system.Unique identifier for the department (
department_id column).Display name of the department.
GET /api/Departments/
Returns a single department by its ID.Path parameters
The department ID to look up.
POST /api/Departments
Creates a new department.Request body
The name of the new department.
PUT /api/Departments/
Updates an existing department.Path parameters
The ID of the department to update.
Request body
The new name for the department.
DELETE /api/Departments/
Deletes a department by its ID.Path parameters
The ID of the department to delete.
Cities
GET /api/Cities/{id} filters cities by department ID, not by city ID. It returns all cities that belong to the specified department.GET /api/Cities
Returns all cities across all departments.Unique identifier for the city (
city_id column).Display name of the city.
ID of the department this city belongs to.
Display name of the parent department, joined from the departments table.
GET /api/Cities/
Returns all cities that belong to a given department.Path parameters
The department ID whose cities you want to retrieve.
POST /api/Cities
Creates a new city inside an existing department.Request body
The name of the new city.
The ID of the department this city belongs to. The department must already exist.
PUT /api/Cities/
Updates an existing city.Path parameters
The ID of the city to update.
Request body
The new name for the city.
The department ID the city should belong to after the update.
DELETE /api/Cities/
Deletes a city by its ID.Path parameters
The ID of the city to delete.
Error codes
| Status | Meaning |
|---|---|
| 200 | Request succeeded. |
| 500 | A database or server error occurred. The response body contains an error or message field with details. |