add some api in res_api