Comment on page
An example Data Stream, that demonstrates how to use this Context Provider to return Sydney's current weather from a REST API operation, can be found below.
Drag the REST API Context Provider Agent onto the canvas, link the output endpoint to the printer, and save the Data Stream.
Select the Agent and click Configure. Keep the default Collection and polling interval.
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.
Let's look at the Live Data View. Sydney's current weather data, the output from the REST API, is printed.