List all Attendance Records
GET/api/attendance
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| user_id | Number | optional Optional filter by user ID |
| status | String | optional Optional filter by status (pending, approved, rejected) |
curl -X GET "https://yoursite.com/api/attendance" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
[
{
"id": "1",
"user_id": "1",
"in_time": "2024-01-15 09:00:00",
"out_time": null,
"status": "pending"
}
]