This example uses the OneCloud HTTP BizApp. It has the four standard Commands expected by any REST API. Those Commands are as follows:
Each of these Commands also allow the inclusion of an Output Schema where users may enter a sample payload for each output that can produce JSON. This will enable access to the properties of this output in downstream Commands.
Sample JSON Data:
"executionTime": "2020-03-05 12:48:34 PM",
"stationName": "Broadway and Battery Pl",
"statusValue": "In Service"
This data is available live at: https://feeds.citibikenyc.com/stations/stations.json
Configuration of the Command:
Usage of the JSON Keys
In the following example, the Create Directory command is being used to illustrate how individual items can be plucked from the response and automatically added to the Iteration and File Path inputs.
Use Variable Transformation to pluck the stationName from each iteration in the JSON list in the Response Iteration.
Publish and Run
Publish and run this sample and see the results. In the example below, a OneCloud GroundRunner is installed on a Windows 10 environment to create a list of files with New York City Citibike stations. These stations are retrieved from the JSON list in the StationBeanList JSON list key and each file contains the value of the executionTime JSON key.
As always, we welcome questions on this post; feel free to contact us at firstname.lastname@example.org.