rest lib