Code-4-Community / breaktime-backend

2 stars 0 forks source link

Create getHours endpoint and updateHours endpoint #10

Closed kennedyry closed 1 year ago

kennedyry commented 1 year ago

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:

kennedyry commented 1 year ago

Closing as this will be merged into a new ticket