Step 2 Creating a data flow... To consume a Spark service you'll need a Data Flow. Click "Connections" in the side menu and then click "+" next to Data Flows.
Once it's created the first thing
you'll want to do is give it a sensible name by clicking where it says "Data Flow" in the top right.
Step 4 Setup your inputs... Go to your Spark service and into the API Tester.
In the bottom left corner you'll see the
request inputs. Switch it to "JSON view" and copy the "Inputs" section which you'll Then paste it in here: find here: • Request • request_data • inputs
Yo u can co py it by clicking the little blue clipbo ard
Step 8 Complete the request Body... The final part of the request ...and then paste it into the Body section on you need to complete is the Airkit. The very last thing is to replace the Body. Head over to your Spark inputs section with your Input variable we service and copy the main created in Step 3! JSON content from here...
Use this button below the "Bo dy" input to make it easier to edit.
Step 9 Test the request... Now scroll down to the "Run Results" section and hit the "> Run" button in the top-right corner. You should see something like the result below indicating a successful run.
At the bottom of that panel you'll see a
"Save as Custom Type" button. Go ahead and click that too to add a representation of your result to your AirData.
Step 10 Update your AirData naming... Head on over to the AitData page and you should see your two auto-generated types for your inputs and output. I suggest renaming them to make them easier to find in the future.
Build your application Start using your service! Now you have a data flow you can hook up to your Airkit application and start consuming your Spark service!