Request Timesheet Information
GET/api/timesheets/{id}
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| id | id | Data id ID. |
curl -X GET "https://yoursite.com/api/timesheets/123" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
HTTP/1.1 200 OK
[
{
"task_id": "2",
"start_time": "10:00:00",
"end_time": "12:00:00",
"staff_id ": "2",
"hourly_rate": "5.00",
"note": "testing note",
}
] Error-Response:
HTTP/1.1 404 Not Found
{
"status": false,
"message": "No data were found"
}