REST API implementation