The dashboard endpoint gives administrators a bird’s-eye view of the platform by returning totals and active-state counts for every major entity in a single round trip. Use it to populate summary widgets or health indicators in an admin panel without querying each resource endpoint individually.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/luiss811/Backend-Airguide/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/analytics/dashboard
Request headers
Bearer token obtained from the authentication flow. The token must belong to a user with the
admin role.Response — 200 OK
Counts for registered users.
Counts for campus buildings.
Total number of classrooms across all buildings.
Total number of professor records.
Total number of office cubicles across all buildings.
Counts for campus events.
Counts for navigation routes.
Total login access log entries recorded across all users.
Example
Error responses
| Status | Body | Cause |
|---|---|---|
401 | { "error": "No autorizado" } | Missing or invalid Bearer token. |
403 | { "error": "Acceso denegado. Se requieren permisos de administrador" } | Token belongs to a non-admin user. |
500 | { "error": "Error interno" } | Unexpected server-side error. |
