DeductionTypeController
| Base path | /api/deduction-types |
| Module | Payroll |
| Endpoints | 4 |
| OpenAPI tag | Deduction Types |
| Source | backend/src/main/java/com/motorph/payroll/controller/DeductionTypeController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/deduction-types | payroll.deduction.manage | list() |
POST | /api/deduction-types | payroll.deduction.manage | create() |
PUT | /api/deduction-types/{id} | payroll.deduction.manage | update() |
DELETE | /api/deduction-types/{id} | payroll.deduction.manage | delete() |
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
| Entity | Table | Tenant-scoped |
|---|---|---|
| DeductionType | deduction_types | Yes |
| EmployeeDeduction | employee_deductions | 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/.