Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/CristianRR94/springCommunity/llms.txt

Use this file to discover all available pages before exploring further.

The Get User endpoint fetches a single registered user by their internal numeric identifier. This is useful when you already hold a user ID — for example, from an event membership record or a participant listing — and need to resolve the corresponding username and email. If the supplied ID does not match any record in the database, the server returns a 404 Not Found response rather than an empty object.

Endpoint

GET /api/usuarios/{id}
Access: Public — no authentication token is required.

Path parameters

id
integer
required
The user’s numeric database ID. This is the auto-generated primary key assigned when the account was created. Must be a positive integer.

Response

Returns a single UsuarioSalidaDTO object on success.
nombre
string
The user’s chosen username. Between 6 and 20 characters.
email
string
The user’s registered email address.

Example response

{
  "nombre": "alice99",
  "email": "alice@example.com"
}

Error responses

HTTP statusCondition
404 Not FoundNo user with the supplied id exists in the database.

Example error response body

{
  "status": 404,
  "mensaje": "Usuario no encontrado",
  "timestamp": 1717000000000
}

Example request

curl -X GET https://api.springcommunity.example/api/usuarios/42 \
  -H "Accept: application/json"

Build docs developers (and LLMs) love