class ShardController {

    @POST
    @Path("/reset/{id}")
    @Produces(MediaType.APPLICATION_JSON)
    @Operation(
        summary = "Reset node to backup db before sharding specified by id",
        description = "Find backup before shard with specified id and when it exists - we will drop our blockchain and load backup entirely",
        security = @SecurityRequirement(name = "admin_api_key"),
        tags = {"shards"}
    )
    @RolesAllowed("admin")
    public Response resetToBackup(@PathParam("id") long shardId) {
        return Response.ok(shardService.reset(shardId)).build();
    }

    @Inject public  ShardController(ShardService shardService, FirstLastIndexParser indexParser);
    public  ShardController();

}