BonusController
| Base path | /api/bonuses |
| Module | Payroll |
| Endpoints | 6 |
| OpenAPI tag | Bonuses |
| Source | backend/src/main/java/com/motorph/payroll/controller/BonusController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/bonuses | payroll.bonus.manage | list() |
GET | /api/bonuses/tax-preview | payroll.bonus.manage | taxPreview() |
GET | /api/bonuses/{id} | payroll.bonus.manage | getById() |
POST | /api/bonuses | payroll.bonus.manage | create() |
PUT | /api/bonuses/{id} | payroll.bonus.manage | update() |
DELETE | /api/bonuses/{id} | payroll.bonus.manage | delete() |
note
This controller carries one @PreAuthorize on the class, which Spring applies to every handler. 6 of its 6 endpoints inherit it rather than declaring their own.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: BonusService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| Bonus | bonus | Yes |
| Employee | employee | Yes |
| PayrollSettings | payroll_settings | 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/.