This page provides an overview of the REST API connection, which enables you to make API requests from within your application.
This page outlines the following aspects of the REST API connection:
This table outlines the required information to configure a REST API connection:
The REST API connection allows you to define one or more Actions, where each Action stores the parameters for a specific request. For example, you can define one Action for a
GETrequest and another for a
POSTrequest. The screenshot below shows how the first Action is configured as a GET request:
Each Action you define becomes a selectable component reference when working in the Logic view that you can drag onto your app. The following screenshot shows the component references corresponding to the two Actions in the previous screenshot:
The following table outlines the parameters you can configure for an Action:
Note: Enable Raw to view and edit the parameter as a string. The following screenshot shows the raw edit mode for Body:
You can assign a unique name for each Action by modifying the Action Name field. The Component Preview section shows how the component looks for the currently selected action:
To expose a parameter of your connection component as a node, click Expose above the parameter field:
Exposed parameters appear as nodes on the left of the connection component allowing you to connect them to other component's nodes when working in the Logic view.