Skip to main content

RoleController

Base path/api/roles
ModuleAuth & Identity
Endpoints6
OpenAPI tagRoles
Sourcebackend/src/main/java/com/motorph/payroll/controller/RoleController.java

Endpoints​

MethodPathRequiresHandler
GET/api/rolessystem.admin.roles.viewlist()
GET/api/roles/{id}system.admin.roles.viewgetById()
POST/api/rolessystem.admin.roles.createcreate()
PUT/api/roles/{id}system.admin.roles.editupdate()
DELETE/api/roles/{id}system.admin.roles.deletedelete()
PUT/api/roles/{id}/permissionssystem.admin.role.permissions.manageupdatePermissions()

Call chain​

Dependencies​

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

Tables reached​

EntityTableTenant-scoped
Permissionpermission—
Rolerole—
Userusers—

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