Implemented the rest of REST API