/api/usuario
Returns a paginated list of users joined with their profile name. Results are ordered by id descending, with a fixed page size of 5 records.
Query parameters
number
default:"1"
Page number to retrieve. Defaults to
1.string
Case-insensitive substring filter applied to
strNombreUsuario. Uses SQL ILIKE '%value%'.number
Filter results to users belonging to the given profile ID.
string
Filter by active status. Pass
"true" for active users or "false" for inactive users. Omit to return all users regardless of status.Response
boolean
required
true when the query completes without error.object[]
required
Array of user objects for the requested page.
number
required
Total number of pages available given the current filters and a page size of 5.
Error response
When an unexpected server error occurs the handler catches the exception and returns:500
Examples
Success response
200