@Delete("/function/:function") @SecuredAction("profile.delete.function") public void deleteFunction(final HttpServerRequest request) { final String function = request.params().get("function"); profileService.deleteFunction(function, defaultResponseHandler(request, 204)); }
@Delete("/functiongroup/:groupId") @SecuredAction("profile.delete.function.group") public void deleteFunctionGroup(final HttpServerRequest request) { final String groupId = request.params().get("groupId"); profileService.deleteFunctionGroup(groupId, defaultResponseHandler(request, 204)); }
@Get("/functions") @SecuredAction(value = "", type = ActionType.RESOURCE) public void listFunctions(final HttpServerRequest request) { profileService.listFunctions(arrayResponseHandler(request)); }