Implement all API endpoints