Request Timesheet Information

GET/api/timesheets/{id}

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
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"
}
MethodGET
Path/api/timesheets/{id}
GroupTimesheets
Sincev0.0.0
Defined inmodules/api/controllers/Timesheets.php