CertificateTemplateController
The certificate template library behind Recognition & Awards.
| Base path | /api/certificate-templates |
| Module | HR |
| Endpoints | 8 |
| OpenAPI tag | Certificate Templates |
| Source | backend/src/main/java/com/motorph/payroll/controller/CertificateTemplateController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/certificate-templates | payroll.settings.manage | list() |
GET | /api/certificate-templates/designs | payroll.settings.manage | designs() |
POST | /api/certificate-templates | payroll.settings.manage | create() |
PUT | /api/certificate-templates/{id} | payroll.settings.manage | update() |
DELETE | /api/certificate-templates/{id} | payroll.settings.manage | delete() |
PUT | /api/certificate-templates/{id}/activate | payroll.settings.manage | activate() |
PUT | /api/certificate-templates/{id}/deactivate | payroll.settings.manage | deactivate() |
POST | /api/certificate-templates/preview | payroll.settings.manage | preview() |
Notes
POST /api/certificate-templates/preview— Sample render for the manager's live preview; the params come from unsaved form state.
note
This controller carries one @PreAuthorize on the class, which Spring applies to every handler. 8 of its 8 endpoints inherit it rather than declaring their own.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: CertificateTemplateService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| CertificateTemplate | certificate_template | Yes |
| CompanyProfile | company_profile | 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/.