REST Connector Builder
Last updated
Last updated
The REST (Representational State Transfer) connector builder provides the ability to create a codeless connection to any external systems; and services via API for further use in flows. Within one base domain, there can be several services with individual path and request parameters. Each service can contain its own cookies and headers.
You cannot use file upload and the link to swagger at the same time.
The connector’s name should be longer than 1 symbol and shorter than 100. It can contain letters (Latin a-z A-Z), numbers 0-9, $, and underscores. It should begin from a letter or underscore character.
In the pop-up window enter the connector name and click on the CREATE button.
If the SWAGGER file was imported with a specific set of services, you will be able to edit those services. You can test these services and create new services in the REST Connector.
Otherwise, you can create your own set of services and configure them manually.
The connector's service name should be longer than 1 symbol and shorter than 250. It can contain letters (Latin a-z A-Z), numbers 0-9, $, and underscores. It should begin with a letter or underscore character.
To add a Description to the REST Connector. Click on the description section and enter the value.
Preservation occurs when starting/switching work with another entity or closing a tab.
To configure the REST Connector, you must enter the following parameters:
URL
Method
GET
POST
PUT
DELETE
PATCH
OPTIONS
HEAD
Request (for POST, DELETE, PATCH, PUT methods). This field is empty by default and requires assigning structures to use it.
Response (available for POST, GET, DELETE, PATCH, and OPTIONS methods). By default, a custom EmptyResponse structure is assigned. You need to use a structure that matches the expected response of the method.
Supported data types for request and response
Boolean — value “true” or “false”
String — text, for example, “Peter Peterson”
Integer — number, for example, “22”
Float — floating-point or decimal number, for example, “0.1234”
Date — specify the date value in the format yyyy-mm-dd, for example ‘'1993-05-31’'.
Custom — any arbitrary structures that can be created in the Structure builder
Also, there are some optional parameters:
path parameters
request parameters
They are generated from the URL or can be created manually.
For the system to recognize them as parameters from a URL, you must put the keys in curly brackets {..}, after which the parameters will become available in the corresponding section and appear in the testing block.
To add new request and path parameters manually.
Supported data types for request and path parameters:
Boolean — value “true” or “false”
String — text, for example, “Peter Petenson”
Integer — number, for example, “22”
Float — floating-point or decimal number, for example, “0.1234”
To filter parameters to find the necessary parameters.
Connector builder has built-in functionality that allows the user to test an imported or created connector’s services. You can test the call to check if it works and see the results of it. To change its settings in case of incorrect service operation.
To test the service, you need to go to the Request section, if the service method requires it, and add the request parameters values of the structure to the JSON.
If the connector has request and path parameters and they are necessary to get the required results, then they should also be set in the corresponding sections.
Make sure that the entered values match the parameter types.
After filling in all the required values, the TEST button will become available, by clicking on it, the system will send a request to the specified endpoint and you will see the processing result in the Response section.
Select Rest Connector on the Project Explorer panel — left end panel. By clicking on the right mouse button, a context menu opens and makes a number of operations available.
Let’s see what operations are possible here:
Edit or simply clicking on the name of the connector — allows you to open the REST Connector.
Copy — allows you to copy the connector to transfer it later.
Clone — allows you to create a clone of the connector. The cloned connector will have the same name as the Name of the parent connector + Clone(n).
Cut — allows you to cut connectors for later transfer.
Paste — allows you to paste a connector. It is not available unless you have previously used the Copy or Cut options.
Rename — allows you to rename the connector.
Delete — allows you to delete the connector.
Select the Service on the connector services section. By clicking the right mouse button, a context menu opens and makes a number of operations available.
Let's see what operations are possible here:
New REST Connector — allows you to create the new service.
New folder — allows you to create a new folder.
Rename — allows you to rename the service.
Copy — allows you to copy the service to transfer it later.
Clone — allows you to create a clone of the service. The cloned service will have the same name as the Name of the parent service + Clone(n).
Paste — allows you to paste service. It is not available unless you have previously used the Copy or Cut options.
Delete — allows you to delete the service.
Select parameter on the connector service settings section. By clicking the right mouse button, a context menu opens and makes a number of operations available.
Let's see what operations are possible here:
Add — allows you to add a new parameter.
Copy — allows you to copy the parameter to transfer it later.
Paste — allows you to paste parameters. It is not available unless you have previously used the Copy or Cut options.
Delete — allows you to delete the parameter.
To create a new REST connector, select the Сonnectors icon on the left-hand side of the Project Explorer panel. Next, create a REST connector by clicking on the Add icon on the Explorer panel and selecting REST Connector. To create a connector in a folder, you need to select or create the desired folder first and then click on the Add icon. In the pop-up window, enter the REST connector's name and upload a Swagger descriptor file or enter a URL to it and click on the CREATE button.
To add a new Connector service. Click the New Connector services button icon. In the pop-up window, enter the Connector service name and click the CREATE button.
To filter Connector services to find the necessary services. Click the Filter icon. You will see a field in which you can enter the name of the element that you need to find and enter the requested value. After that, the results of the match will be presented in the general list.
Click the Add icon on the central part near the request or path parameters section then click on the data type and select the necessary data type. After that, they will appear both in the URL and in the testing block.
Click on the Filter icon. Enter the name of the element in the field that you need to find and enter the requested value. After that, the results of the match will be presented in the list.
To add Cookies and Headers. Click on the Add icon on the Test Connector Service and enter the key and value in a text format. You can also delete this data by clicking the right mouse button. Where the key is the cookie name and the value is the cookie value. Where the key is the header name and the value is the header value.