Added RESTful API implementation