Update the restful api
Merged