Writing REST API Requests
Writing Variables in Path
You can dynamically specify an ID and send a request by writing something like /v1/users/{{ table1.selectedRow.data.id }}
.
Writing the Body
Sending Requests in JSON Format
You can write the body in JSON format. For more details, please see here (opens in a new tab).
Sending Requests with Form Data
Text Data
- Change [Body type] to
Form Data
- Click on [Add parameter]
- Enter the Form Data Key name in [key]
- Ensure that [Type] is set to
Text
- Enter the Form Data value in [value]
File Data
- Change [Body type] to
Form Data
- Click on [Add parameter]
- Enter the Form Data Key name in [key]
- Change [Type] to
File
- Enter
{{ file1.value[0] }}
in [value] to reference the file component
🙋♂️ About the file component
The value of
{{ file1.value[0] }}
is in Object format, but before the API request, it is converted to multipart/form-data format by the query server and then sent as a request.
Array Data
- Change [Body type] to
Form Data
- Click on [Add parameter]
- Enter the Form Data Key name as
array[]
in [key] - Ensure that [Type] is set to
Text
- Enter the Form Data value in [value]