Skip to main content

DeductionTypeController

Base path/api/deduction-types
ModulePayroll
Endpoints4
OpenAPI tagDeduction Types
Sourcebackend/src/main/java/com/motorph/payroll/controller/DeductionTypeController.java

Endpoints​

MethodPathRequiresHandler
GET/api/deduction-typespayroll.deduction.managelist()
POST/api/deduction-typespayroll.deduction.managecreate()
PUT/api/deduction-types/{id}payroll.deduction.manageupdate()
DELETE/api/deduction-types/{id}payroll.deduction.managedelete()
note

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

Call chain​

Dependencies​

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

Tables reached​

EntityTableTenant-scoped
DeductionTypededuction_typesYes
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/.