Example 6: Single Step REST Call with Variable Inputs
In this V2.0 syntax example we execute a single step rest call using a variable to call upon the REST uri.
{ "name": "Submit simple REST workflow",
"version": "1.0",
"workflow": {
"name": "Single step REST workflow with input uri",
"version": "1.0",
"plan": {
"steps": [
{
"name": "rest step",
"operation": {
"type": "REST",
"parameters": {
"method": "GET",i
"uri": "${workflow.vars.uri}"
}
}
}
]
},
"input": {
"vars": {
"uri": "http://www.somewhere.com/rest/api"
}
}
}
}