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




Click the Endpoint unit to open the Mapping editor.


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.


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


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


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


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


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


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


Click Done to save your changes.

Next step
Next step

To continue, see Preview the endpoint.