change api to restful