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 GET /espacios/all endpoint returns every coworking space that has been registered in the system as an ordered JSON array. This is the primary way to populate a space selector in a booking UI, build an admin inventory view, or verify which spaces exist before creating a reservation. The endpoint requires no parameters and no authentication.

Request

This endpoint accepts no query parameters, path parameters, or request body. No authentication headers are required.
The list is unfiltered and unordered — it reflects the natural insertion order returned by the underlying JpaRepository.findAll() call. If you need a specific ordering, sort the array client-side after receiving the response.

Example request

curl http://localhost:8080/espacios/all

Response

200 OK

Returns a JSON array of Espacio objects. If no spaces have been created yet, the array will be empty ([]).
[
  {
    "id": 1,
    "nombre": "Sala de Reuniones A",
    "tipo": "sala_reunion",
    "capacidad": 10,
    "minutos_limpieza": 15
  },
  {
    "id": 2,
    "nombre": "Auditorio Principal",
    "tipo": "auditorio",
    "capacidad": 80,
    "minutos_limpieza": 30
  },
  {
    "id": 3,
    "nombre": "Oficina Privada 1",
    "tipo": "oficina_privada",
    "capacidad": 4,
    "minutos_limpieza": 10
  }
]

Response fields (per array item)

id
integer
Auto-generated unique identifier for the coworking space.
nombre
string
Human-readable name of the space. Up to 50 characters.
tipo
string
Functional category of the space (e.g., sala_reunion, auditorio, oficina_privada). Up to 30 characters.
capacidad
integer
Maximum occupancy of the space expressed as a headcount.
minutos_limpieza
integer
Number of minutes automatically reserved after each booking ends for cleaning, before the next booking can start.

Build docs developers (and LLMs) love