rest library