added REST sample