add RESTfull API