The Espacios resource represents the physical coworking spaces available for booking in the CoworkingBooking system. Each space is identified by a unique integer ID and carries metadata describing its name, functional type, maximum occupancy, and the number of minutes reserved after every booking for cleaning. You can list all spaces, fetch a single space by ID, register a new space, and remove an existing one.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/devdavco/backend_1/llms.txt
Use this file to discover all available pages before exploring further.
Base path
All Espacios endpoints share the following base path:http://localhost:8080/espacios.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /espacios/ping | Health check — returns the string "pong" |
GET | /espacios/all | List all registered coworking spaces |
GET | /espacios/{id} | Retrieve a single space by its integer ID |
POST | /espacios/create | Register a new coworking space |
DELETE | /espacios/eliminar/{id} | Permanently delete a space by its integer ID |
The Espacio object
Every endpoint that returns space data uses the following shape. Fields are drawn directly from theGetEspacioResponse DTO and the Espacio JPA entity.
Auto-generated primary key assigned by the database on creation. This value is read-only and cannot be set by the caller.
Human-readable name of the coworking space. Maximum 50 characters. Cannot be null or blank.
Functional category of the space — for example
sala_reunion, auditorio, or oficina_privada. Maximum 30 characters. Cannot be null or blank.Maximum number of people the space can accommodate at one time. Must be a non-zero positive integer.
Number of minutes automatically blocked after each booking ends to allow cleaning before the next reservation can begin. Must be a non-zero positive integer.
Example Espacio object
Endpoint pages
GET /all
Retrieve the full list of registered coworking spaces.
GET /{id}
Fetch a single coworking space by its integer ID.
POST /create
Register a brand-new coworking space in the system.
DELETE /eliminar/{id}
Permanently remove a coworking space by its integer ID.