updated REST API endpoints