update restful api