Code-4-Community / breaktime-backend

2 stars 0 forks source link

Timesheet API: POST request for submitting hours #4

Closed izzyconner closed 1 year ago

izzyconner commented 1 year ago

As a developer, I need an endpoint to submit and store updated timesheets for a given user.

POST api/v1/protected/hours/userID

Reuqest body:

{ "hours" : [TimesheetEntry] }

Schema:

TimesheetEntry: { "date" : String, "day" : String, "clockIn" : String, "clockOut" : String, "totalTime" : String, "comments" : [String] }