added RESTful API implementation