REST API implementation example