Map attributes to parameters

Mapping is the selection of attributes of a data source and connecting them to path parameters of a second unit. A Mapping editor is provided to easily do this.

The Request unit is now connected to the response Endpoint unit through the data sources unit but mapping still needs to be done.

In this topic, we will map between all the units on the pipeline to achieve the response to requests we set as our goal.

Using the Mapping editor to make the first mapping
Making the second mapping
Making the third mapping

Steps

Description

1

Click the findVariantById unit to open the Mapping editor.

2

From the Request unit, drag the attribute variant_id to an empty path parameter in findVariantsbyId.

3

Click Done to save the mapping.

4

Click the findEngineById unit to open the Mapping editor.

‚Äč

Note: The input attributes for findVariantById shows a list of seven attributes and an array element indicated by square brackets [ ]. The findEngineById shows only one empty field for a path parameter. It expects an attribute to provide a value for the path parameter engine_id.

5

Drag the body attribute variant_id from findVariantById to the empty path parameter in findEngineById.

6

Click Done to save the mapping.

7

Click the findModelById unit to open the Mapping editor.

8

Drag the body attribute from findVariantById to the empty path parameter in findModelById.

9

Click Done to save the mapping.

First Tab
First Tab

To continue, see Map parameters to endpoint.