Request all Timesheets

GET/api/timesheets/

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area
curl -X GET "https://yoursite.com/api/timesheets/" \
  -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"
}
MethodGET
Path/api/timesheets/
GroupTimesheets
Sincev0.0.0
Defined inmodules/api/controllers/Timesheets.php