Example
An example Data Stream can be found below that demonstrates how to use this Action Agent to get current weather from different cities.
Drag the REST API Action Agent onto the canvas, link the input endpoint to city data, the output to the printer, and save the Data Stream.

Select the Agent and click Configure. Keep the default Collection.

Enter the Base URL of the REST API.

Upload the Metadata Configuration File.

Select the operation and result entity (defined in the uploaded metadata configuration file). In this case, set the operation to 'Get Current Weather' and the result entity to Current.

The input mapping grid is populated when the operation is selected. Set the access key and the city to Sydney. Apply the changes and save the Data Stream.

Click Publish.

Let's look at the Live Data View. The current weather for each city, the output from the REST API, is printed.

File | Link | Security Key |
---|---|---|
Data Stream | Rest API Action Agent Example.xuc | C0mp|ex123 |
Sample
metadata file | API Meta data.json | |
Sample data | REST API Sample Data.csv | |
Last modified 6mo ago