Overview
The Employee Management API provides endpoints to query employee information, retrieve catalogs with filters, and access supervisor lists. This guide covers the core employee query operations available in the Integra system.Retrieving Employee Catalog
Get a filtered list of employees based on various criteria.Prepare filter parameters
Endpoint:
GET /empleadosAvailable Filter Parameters:unidadId- Filter by unit/locationdepartamentoId- Filter by departmentpuestoId- Filter by positionsupervisorId- Filter by supervisorzonaId- Filter by zoneactivos- Filter by active status (boolean)codigo- Filter by employee codenombre- Search by name
Execute the query
Example: Get all active employees in unit 5Example: Search employees by nameExample: Get employees by department and position
Process the response
Success Response (200 OK):Employee Object Fields:
id- Unique employee identifiercodigo- Employee code/numbernombre- First nameapellidoPaterno- Paternal surnameapellidoMaterno- Maternal surnamenombreCompleto- Full namepuesto- Position/job title objectunidad- Unit/location assignmentfechaAlta- Hire datefechaBaja- Termination date (null if active)fechaReingreso- Rehire date (if applicable)estatus- Employee statusdepartamento- Department assignmentcontacto- Contact informationsexo- Gendergestores- List of assigned managers/supervisors
Getting Supervisor List
Retrieve a list of employees with supervisor roles.Query supervisors
Endpoint: Example: Get all supervisors (active and inactive)
GET /empleados/supervisoresQuery Parameters:activos(optional) - Filter by active status (boolean)
Getting Employee Details
Retrieve complete details for a specific employee by ID.Request employee details
Endpoint:
GET /empleados/{id}/detallesPath Parameters:id- Employee ID (required)
Employee Status Values
Common employee status values in the system:ACTIVO- Active employeeBAJA- Terminated employeeSUSPENDIDO- Suspended employeeLICENCIA- Employee on leave
Filtering Best Practices
Combining Filters
You can combine multiple filter parameters for precise queries:Performance Considerations
- Use specific filters when possible to reduce response size
- Filter by
activos=truewhen you only need current employees - Combine
unidadIdanddepartamentoIdfor targeted queries - Use employee code for exact lookups
Common Use Cases
Get all active employees in a specific location
Find employees by supervisor
Get employees in a specific department and position
Search for a specific employee by code
Reference
Controller:EmpleadoController.java at /empleado/controller/EmpleadoController.java:1
Related Models:
Empleado.java- Employee entity modelFiltroEmpleado- Employee filter parametersPuesto- Position/job titleUnidad- Unit/locationDepartamento- DepartmentContacto- Contact informationGestor- Manager/supervisor relationship
Next Steps
Attendance Recording
Record and manage employee attendance
Reports Generation
Generate reports based on employee data