use of com.nexblocks.authguard.api.dto.entities.RoleDTO in project AuthGuard by AuthGuard.
the class RolesRoute method create.
public void create(final Context context) {
final CreateRoleRequestDTO role = createRoleRequestBodyHandler.getValidated(context);
final RoleDTO created = Optional.of(role).map(restMapper::toBO).map(rolesService::create).map(restMapper::toDTO).orElseThrow();
context.status(201).json(created);
}
Aggregations