URL Parameters in API Gateway
Last updated
Last updated
In some cases, you may need to capture the URL content from an API call. This can be done using the API Gateway parameters in Skyone Studio.
To do this, follow these steps:
Access the "API Gateway" menu on the screen's left side. The following screen will appear:
Click on "Create API Gateway" or select an existing one to edit. If this is your first API Gateway, .
When selecting the API Gateway, the following screen will appear:
Click the version edit icon. If you don't have a version, .
On the version edit screen, click "Create new route". Fill in the fields with the necessary data. In "Route URL", prefix the parameter you want to receive with ":", as shown in the example below:
Next, save the changes. This way, the id parameter will be available in the flow.
In the trigger configuration in the flow, you can define a value, for example:
You can then work with the values in the following components:
To make the call, simply replace the part of the URL prefixed with ":" with the actual value.