modify RESTful api