start to use REST api