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 /usuarios/all endpoint returns every user account currently stored in the database as a JSON array. This is the quickest way to enumerate all registered members of the coworking platform — for example, to populate an admin dashboard or to verify newly created accounts. When no users exist the endpoint returns an empty array [].

Parameters

This endpoint accepts no path parameters, query parameters, or request body.

Request

curl http://localhost:8080/usuarios/all

Response

200 OK

Returns a JSON array of Usuario objects. Each element in the array has the following fields:
id
integer
The auto-generated primary key of the user.
nombre
string
The user’s full display name (max 100 characters).
email
string
The user’s unique email address (max 150 characters).
password_hash
string
The password value stored for this user. See the security warning below.
rol
string
The user’s role identifier — e.g., "admin" or "usuario".
[
  {
    "id": 1,
    "nombre": "María García",
    "email": "[email protected]",
    "password_hash": "s3cr3tP@ssword",
    "rol": "usuario"
  },
  {
    "id": 2,
    "nombre": "Carlos Administrador",
    "email": "[email protected]",
    "password_hash": "4dm1nP@ss!",
    "rol": "admin"
  }
]
password_hash is included in every response object. The server returns the stored password value as-is. Until server-side password hashing is implemented, avoid exposing this endpoint publicly or to untrusted clients.

Build docs developers (and LLMs) love