update the restclient,remove url in constructor