Skip to main content

EmployeeDeductionController

Base path/api/employee-deductions
ModulePayroll
Endpoints5
OpenAPI tagEmployee Deductions
Sourcebackend/src/main/java/com/motorph/payroll/controller/EmployeeDeductionController.java

Endpoints​

MethodPathRequiresHandler
GET/api/employee-deductionspayroll.deduction.managelist()
GET/api/employee-deductions/{id}payroll.deduction.managegetById()
POST/api/employee-deductionspayroll.deduction.managecreate()
PUT/api/employee-deductions/{id}payroll.deduction.manageupdate()
DELETE/api/employee-deductions/{id}payroll.deduction.managedelete()
note

This controller carries one @PreAuthorize on the class, which Spring applies to every handler. 5 of its 5 endpoints inherit it rather than declaring their own.

Call chain​

Dependencies​

Constructor-injected by Lombok's @RequiredArgsConstructor: EmployeeDeductionService.

Tables reached​

EntityTableTenant-scoped
DeductionTypededuction_typesYes
EmployeeemployeeYes
EmployeeDeductionemployee_deductionsYes

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