NotificationController
| Base path | /api/notifications |
| Module | Platform Misc |
| Endpoints | 3 |
| OpenAPI tag | Notifications |
| Source | backend/src/main/java/com/motorph/payroll/controller/NotificationController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/notifications/me | employee.notifications.view | listMine() |
PATCH | /api/notifications/{id}/read | employee.notifications.view | markAsRead() |
PATCH | /api/notifications/me/read-all | employee.notifications.view | markAllAsRead() |
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: NotificationService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| Employee | employee | Yes |
| Notification | notifications | Yes |
| User | users | — |
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/.