class UserErrorMessageController {

    @DELETE
    @Produces(MediaType.APPLICATION_JSON)
    @Operation(tags = {"user-errors"}, summary = "Delete user errors for all users",
        description = "Will delete all user errors before specified timestamp",
        security = @SecurityRequirement(name = "admin_api_key"),
        responses = @ApiResponse(description = "Number of deleted entries", responseCode = "200", content = @Content(mediaType = "application/json", schema = @Schema(implementation = UserErrorsDeleteResponse.class))))
    @RolesAllowed("admin")
    public Response deleteByTimestamp(@Parameter(description = "Timestamp before which all user errors should be deleted ", required = true) @QueryParam("timestamp") long timestamp) {
        return Response.ok(new UserErrorsDeleteResponse(service.deleteByTimestamp(timestamp))).build();
    }

    public  UserErrorMessageController();
    @Inject public  UserErrorMessageController(UserErrorMessageService service);

}