Implemented several API endpoints