Finish implementing RESTful API