add REST sample