•Connect to an HTTP API
•Create Connector Node
- Drag & Drop the Connector to the Canvas
- Connect Start node with Connector node
- Double click on the Connector to open the settings
- Change the default name with
GetProduct
- Click on Create connector button
- Give a name to the request, e.g.
GetProductById
- Select Create button and you will be redirected to the HTTP query builder
•Create an HTTP query
We will be using the classic Northwind example data set. It is structured as a simple REST API.
Enter the URL pointing to the products resource.
We want to get a specific product by its Id so we'll use a path variable. After
/products
append the fallowing:/:productId
.While you are writing you'll see the Path variables table appears bellow.
Change the type of the productId variable.
Test the request. For this example we'll be using a product with Id 30.
Click on Build schema button to create an object schema
•Complete Configuration
- Click on Return to OrderProduct button(top navigation panel next to the logo).
- Double click on GetProduct node to open the settings.
- Select the newly created connector from the drop down menu.
- The available input parameters will appear bellow the menu and you'll see the
productId
that we defined in the previous step. - Select Use variable from state button, click on Select field... and then select start.productId. Learn more about input parameters form.
- Select Apply button.
•Next Steps
See how to configure a Processor node