Implemented RESTful API via separate servlet