Map parameters to endpoint

The final step is to map attributes from the data source units to parameters in the endpoint.

In this step, you use some of the features of the Mapping editor. This includes mapping all attributes to a unit in one click. It also includes creating several nests (folders) as child elements of the body and then manually mapping specific attributes within the nests.

Mapping all attributes from findVariantById to Endpoint
Mapping attributes from findEngineById to Endpoint
Mapping attributes from findModelById to Endpoint

Steps

Description

1

Click the Endpoint unit to open the Mapping editor.

2

Under findVariantById, click the menu (three dots ....) and select Map all attributes to unit. All body attributes are mapped to body parameters in the Endpoint.

3

Click the menu (three dots ...) in the body parameter of the Endpoint, then click Add new children.

4

In the field, click the Nest (folder) icon and in the field enter engine, then click Create.

5

Make another Nest (folder) under the body called model, then click Create.

6

Dismiss the Create leaf element field. You should now have all the attributes from the findVariantById unit and two folders named engine and model.

7

From findEngineById, drag all four of the body attributes to the engine folder.

8

From findModelById, drag all three body attributes to the model folder.

9

Click Done to save your changes.

Next step
Next step

To continue, see Preview the endpoint.