TimesheetController
| Base path | /api/timesheets |
| Module | HR |
| Endpoints | 10 |
| OpenAPI tag | Timesheets |
| Source | backend/src/main/java/com/motorph/payroll/controller/TimesheetController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/timesheets/me | employee.timesheet.view | listMine() |
POST | /api/timesheets | hr.timesheets.manage | create() |
POST | /api/timesheets/clock-in | employee.timesheet.view | clockIn() |
POST | /api/timesheets/clock-out | employee.timesheet.view | clockOut() |
POST | /api/timesheets/{id}/submit | employee.timesheet.view | submit() |
GET | /api/timesheets | hr.timesheets.view | list() |
GET | /api/timesheets/{id} | hr.timesheets.view | getById() |
PUT | /api/timesheets/{id} | hr.timesheets.manage | update() |
PATCH | /api/timesheets/{id}/status | hr.timesheets.manage | updateStatus() |
DELETE | /api/timesheets/{id} | hr.timesheets.manage | delete() |
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: TimesheetService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| Employee | employee | Yes |
| Timesheet | timesheet | Yes |
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.