Updated API endpoints with REST