add the restful api