ReST
Learn how to use the ReST action in DBSync Cloud Workflow
Last updated
Learn how to use the ReST action in DBSync Cloud Workflow
Last updated
The ReST Action in DBSync Cloud Workflow enables users to interact with any RESTful web service within their workflows. This action is versatile and allows you to send HTTP requests, enabling seamless integration with various external services and APIs. This guide provides step-by-step instructions on setting up, configuring, and using the ReST action effectively.
An active DBSync Cloud Workflow account.
The endpoint URL of the RESTful web service you intend to connect to.
API credentials (if required by the endpoint) and necessary access permissions.
Log in to DBSync Cloud Workflow.
Navigate to Workflows and either create a new workflow or select an existing one.
Add a new Action Step.
Select ReST Action from the list of available actions.
Enter the following details:
Request Name: A descriptive name for the action.
Method: Choose the HTTP method (GET, POST, PUT, DELETE, PATCH).
Endpoint URL: Provide the full URL of the API endpoint.
Configure additional options:
Headers: Add custom headers such as Content-Type
or Authorization
for authenticated requests.
Query Parameters: Specify any query strings needed by the endpoint.
Body (for POST, PUT, PATCH): Include the request payload in JSON, XML, or any supported format.
If the API requires authentication:
Select the appropriate Authentication Type from:
No Auth: No authentication required.
API Key: Provide the key and its location (header, query).
Bearer Token: Enter the token for authorization.
Basic Auth: Enter username and password.
OAuth 2.0: Configure using the OAuth details, including client ID, client secret, and token URL.
Save the authentication settings.
Use the Field Mapping Tool to map data from other workflow steps or sources to the ReST Action request fields.
Configure transformations if needed to modify the data before it is sent.
Save your workflow configuration.
Click Run Test to execute the ReST Action and observe the response.
Review the response data and logs to ensure the action works as intended.
Capture Output: Store response data for use in subsequent workflow steps by mapping output fields.
Conditional Logic: Set conditions based on response status codes (e.g., 200 OK
, 400 Bad Request
) to control workflow behavior.
Select GET as the method.
Provide the Endpoint URL and any necessary headers.
Run the workflow to retrieve data, and map the response fields for use in downstream actions.
Select POST or PUT as the method.
Configure the Body with data mapped from previous workflow steps.
Include any required headers (e.g., Content-Type: application/json
).
Test and save the action to send data.
Choose PATCH and specify the Endpoint URL.
Include the partial data in the Body that you want to update.
Save and execute the workflow to make the update.
Use Placeholders (e.g., {{variable_name}}
) in the URL, headers, or body to dynamically insert data at runtime.
For large payloads, ensure the endpoint supports chunked transfer or increase the timeout setting in the ReST Action to avoid interruptions.
401 Unauthorized: Check authentication credentials and token validity.
404 Not Found: Verify that the endpoint URL and resource path are correct.
Timeout Errors: Increase the action timeout or check the network status.
Log Responses: Enable response logging to capture the details of API interactions.
Use Test Mode: Run the ReST Action in test mode to monitor real-time response data without affecting production workflows.
Secure API Keys: Store API keys in a secure environment and avoid hardcoding them in workflows.
Optimize API Calls: Minimize API calls by using only necessary data fields and parameters.
Monitor API Limits: Be aware of the rate limits imposed by the API provider to prevent overuse.
The ReST Action in DBSync Cloud Workflow provides a powerful way to connect with and automate data flows involving any RESTful service. By following this guide, users can configure and execute ReST Actions effectively to enhance their workflow automation and data integration processes.