🚀 CEO Attendance API Testing

📋 Setup Instructions:

  1. Database credentials are set in config/database.php
  2. All API files are in /api/endpoints/
  3. Access this test page via: https://ceo.bdhuae.org/api/test.html (or your filename)
  4. Use the buttons below to test each endpoint
⚠️ Important: Make sure MySQL is running and the biotime database + tables exist.

📊 Dashboard KPIs

GET Dashboard Statistics

GET /api/endpoints/dashboard.php
date (optional): YYYY-MM-DD • Default: today
month (optional): YYYY-MM • Default: current month

👥 Employees List

GET All Employees

GET /api/endpoints/employees.php
search (optional): name or user_id
date (optional): YYYY-MM-DD • Default: today

👤 Employee Detail

GET Employee Attendance History

GET /api/endpoints/employee_detail.php
user_id (required): Employee ID (e.g. 220359)
start_date (optional): YYYY-MM-DD • Default: month start
end_date (optional): YYYY-MM-DD • Default: today