Annotation Type IsAuthorizedAdmin
-
@Target(METHOD) @Retention(RUNTIME) @PreAuthorize("hasRole(\'ROLE_ADMINGROUP\')") public @interface IsAuthorizedAdminAnnotation for securing rest endpoints.
Only users that have role admin can access this endpoint.