Skip to main content

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.

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.

Base path

All Espacios endpoints share the following base path:
/espacios
The full base URL in a local development environment is http://localhost:8080/espacios.

Endpoints

MethodPathDescription
GET/espacios/pingHealth check — returns the string "pong"
GET/espacios/allList all registered coworking spaces
GET/espacios/{id}Retrieve a single space by its integer ID
POST/espacios/createRegister 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 the GetEspacioResponse DTO and the Espacio JPA entity.
id
integer
Auto-generated primary key assigned by the database on creation. This value is read-only and cannot be set by the caller.
nombre
string
required
Human-readable name of the coworking space. Maximum 50 characters. Cannot be null or blank.
tipo
string
required
Functional category of the space — for example sala_reunion, auditorio, or oficina_privada. Maximum 30 characters. Cannot be null or blank.
capacidad
integer
required
Maximum number of people the space can accommodate at one time. Must be a non-zero positive integer.
minutos_limpieza
integer
required
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

{
  "id": 1,
  "nombre": "Sala de Reuniones A",
  "tipo": "sala_reunion",
  "capacidad": 10,
  "minutos_limpieza": 15
}

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.

Build docs developers (and LLMs) love