REST API with cURL client