Introduction
GIMA provides role-based dashboard endpoints that return contextual information based on the authenticated user’s role. These endpoints require authentication and appropriate role permissions.Admin Dashboard
Access administrative dashboard with full system control.GET /api/admin/dashboard
Authorization
Bearer token from login
Role Requirements
- Required roles:
admin
Response
Welcome message for admin users
Status Codes
200- Success401- Unauthorized (missing or invalid token)403- Forbidden (user does not have admin role)
Technical Work Orders
View work orders and maintenance tasks for technical staff.GET /api/tecnica/ordenes-trabajo
Authorization
Bearer token from login
Role Requirements
- Required roles:
tecnico,supervisor, oradmin
Response
Work orders listing message
Status Codes
200- Success401- Unauthorized (missing or invalid token)403- Forbidden (user does not have tecnico, supervisor, or admin role)
Supervision Audit
Access quality audit information for supervisors.GET /api/supervision/auditoria
Authorization
Bearer token from login
Role Requirements
- Required roles:
supervisororadmin
Response
Audit access confirmation message
Status Codes
200- Success401- Unauthorized (missing or invalid token)403- Forbidden (user does not have supervisor or admin role)
Monthly Reports
Access monthly reports and analytics.GET /api/reportes/mensuales
Authorization
Bearer token from login
Role Requirements
- Required roles:
reporteroradmin
Response
Reports access confirmation message
Status Codes
200- Success401- Unauthorized (missing or invalid token)403- Forbidden (user does not have reporter or admin role)
Testing Dashboard Access
You can test dashboard endpoints with different user roles using the test credentials:Error Handling
All dashboard endpoints return standard error responses for authentication and authorization failures:401 Unauthorized
Returned when no authentication token is provided or the token is invalid:403 Forbidden
Returned when the user does not have the required role:Related Documentation
Authentication
Learn how to obtain authentication tokens
Roles & Permissions
Understand the role system and permissions
User Profile
Get authenticated user information
Quick Start
Get started with GIMA API