Create a get hours endpoint:
GET api/v1/protected/gethours:TimeSheetUUID
POST api/v1/protected/updateHours:TimeSheetUUID
Where getHours will return the hours associated with a timesheet, and updateHours will update the logged hours associated with a timesheet.
Authentication token should also be sent into header.
This will be the entries for a timesheet that are viewed by a user for a specified week / duration associated with timesheets.
Response body:
{
[ {"UUID":"Unique Table ID", "StartDate":"Epoch of the start time for that", "TimesheetID":"The ID of the timesheet associated here", "Duration":"Duration of this entry, in minutes", "Comment":"Comment for this"},
...
{"UUID":... }
]
}
The keys are formatted as follows:
UUID: The unique table entry ID, unique to this entry
StartDate: The start date / time in epoch for this entry
Duration: The total time from the startDate of the hours worked - in minutes
TimesheetID: What timesheet this relates to
Comment: The comments associated with this, of the form Type|Author|Comment until we get better clarification from breaktime.
Create a get hours endpoint:
GET api/v1/protected/gethours:TimeSheetUUID
POST api/v1/protected/updateHours:TimeSheetUUID
Where getHours will return the hours associated with a timesheet, and updateHours will update the logged hours associated with a timesheet.
Authentication token should also be sent into header.
This will be the entries for a timesheet that are viewed by a user for a specified week / duration associated with timesheets.
Response body:
The keys are formatted as follows: