REST API curl sample