Employee Management System REST API
/health
Check if the API server is running and healthy.
/karyawan
Retrieve all active employees with pagination, search, and filtering.
/karyawan/deleted
Retrieve all soft deleted employees.
/karyawan/{nik}
Retrieve a specific employee by their NIK.
/karyawan
Create a new employee record.
/karyawan/{nik}
Update an existing employee record.
/karyawan/{nik}
Soft delete an employee (sets is_active = false). Data can be restored later.
/karyawan/{nik}/restore
Restore a soft deleted employee (sets is_active = true).
/karyawan/{nik}/hard
⚠️ WARNING: Permanently delete an employee from database. This action cannot be undone!
/karyawan/statistics
Get overall statistics and analytics data.
/karyawan/divisi
Get list of all available divisions.
/karyawan/summary/by-divisi
Get employee count per division, separated by active and inactive status.
/karyawan/summary/by-tahun-kontrak
Get the number of contracts created per year.
/karyawan/summary/by-pic-status
Get the number of active employees who have a PIC and who do not.