update restful api by flask