Skip to main content

BonusController

Base path/api/bonuses
ModulePayroll
Endpoints6
OpenAPI tagBonuses
Sourcebackend/src/main/java/com/motorph/payroll/controller/BonusController.java

Endpoints​

MethodPathRequiresHandler
GET/api/bonusespayroll.bonus.managelist()
GET/api/bonuses/tax-previewpayroll.bonus.managetaxPreview()
GET/api/bonuses/{id}payroll.bonus.managegetById()
POST/api/bonusespayroll.bonus.managecreate()
PUT/api/bonuses/{id}payroll.bonus.manageupdate()
DELETE/api/bonuses/{id}payroll.bonus.managedelete()
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​

EntityTableTenant-scoped
BonusbonusYes
EmployeeemployeeYes
PayrollSettingspayroll_settingsYes

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/.