update RESTful api