rest example