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 /reserva/all endpoint returns every reservation record stored in the database as a flat JSON array. This is a read-only, unauthenticated query — no parameters are required. The response includes the full Reserva object for each booking, including all three timestamps, the current estado, the associated usuarioId and espacioId, and the optimistic-locking version counter.

Parameters

No path parameters, query parameters, or request body are required for this endpoint.

Request

curl -X GET http://localhost:8080/reserva/all \
  -H "Accept: application/json"

Response

Returns 200 OK with a JSON array of Reserva objects.
[
  {
    "id": 1,
    "usuarioId": 2,
    "espacioId": 1,
    "horaInicio": "2025-06-10 08:00",
    "horaFinUsuario": "2025-06-10 10:00",
    "horaFinTotal": "2025-06-10 10:30",
    "estado": "confirmada",
    "version": 0
  },
  {
    "id": 2,
    "usuarioId": 5,
    "espacioId": 3,
    "horaInicio": "2025-06-11 14:00",
    "horaFinUsuario": "2025-06-11 16:00",
    "horaFinTotal": "2025-06-11 16:30",
    "estado": "pendiente",
    "version": 0
  }
]

Response fields

id
integer
Unique auto-generated identifier for the reservation.
usuarioId
integer
ID of the user who made the booking.
espacioId
integer
ID of the coworking space that was reserved.
horaInicio
string
Start time of the reservation in yyyy-MM-dd HH:mm format.
horaFinUsuario
string
The time the user’s session ends, in yyyy-MM-dd HH:mm format.
horaFinTotal
string
Absolute end of the reserved slot including the cleaning buffer, in yyyy-MM-dd HH:mm format.
estado
string
Current status of the reservation. One of confirmada, pendiente, or cancelada.
version
integer
Optimistic-locking version counter. Incremented automatically by JPA on each successful write.

Build docs developers (and LLMs) love