Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Israel-Perez/Nuxt-Secure/llms.txt

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

Paginated list

GET /api/modulo Returns a paginated list of modules. Results are ordered by id descending, with a fixed page size of 5 records.

Query parameters

page
number
default:"1"
Page number to retrieve. Defaults to 1.
Case-insensitive substring filter applied to strNombreModulo. Uses SQL ILIKE '%value%'.

Response

success
boolean
required
true when the query completes without error.
data
object[]
required
Array of module objects for the requested page.
totalPages
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
{
  "success": false,
  "message": "Ocurrió un error al consultar los módulos."
}

Examples

curl --request GET \
  --url 'https://your-domain.com/api/modulo?page=1&search=ventas' \
  --cookie 'auth_token=<your-jwt>'

Success response

200
{
  "success": true,
  "data": [
    {
      "id": 5,
      "strNombreModulo": "VENTAS"
    }
  ],
  "totalPages": 2
}

Simple list (for dropdowns)

GET /api/modulo/list Returns all modules without pagination. All fields (id and strNombreModulo) are included. Results are ordered by id ascending. Intended for populating select inputs in the UI.

Response

success
boolean
required
true when the query completes without error.
data
object[]
required
Array of all module objects.

Error response

When an unexpected server error occurs:
500
{
  "statusCode": 500,
  "message": "Error al cargar módulos"
}

Examples

curl --request GET \
  --url 'https://your-domain.com/api/modulo/list' \
  --cookie 'auth_token=<your-jwt>'

Success response

200
{
  "success": true,
  "data": [
    { "id": 1, "strNombreModulo": "USUARIOS" },
    { "id": 2, "strNombreModulo": "PERFILES" },
    { "id": 3, "strNombreModulo": "MODULOS" }
  ]
}