ProcessMIX Guide
  • Platform Overview
    • Introduction
    • Platform Purpose
    • Main Concepts
      • Organization Structure
      • Visual Language
      • Project Development Environment (IDE)
      • Deployment and Integration
      • Administration and Troubleshooting
    • First Steps
    • Change Log
      • 5.0.0
      • 5.0.5
      • 5.0.5.1
      • 5.0.5.2
      • 5.0.5.3
      • 5.0.5.4
  • Language Reference Guide
    • Overview
    • Data Structures and Types
      • Core Types (pdk.core)
      • Dictionary (pdk.asset.dictionary)
      • Scorecard (pdk.asset.scorecard)
      • Blockchain (pdk.blockchain)
      • Exceptions (pdk.ex)
      • Input/Output (pdk.io)
      • JSON Web Token (pdk.jwt)
      • Networking (pdk.net)
      • HTTP (pdk.net.http)
      • SOAP/Web Services (pdk.net.soap)
      • XML/DOM (pdk.net.xml)
      • S3 (pdk.s3)
      • SQL (pdk.sql)
      • Postgres (pdk.db.postgre)
      • Util (pdk.util)
      • Default Data Structure Field Values
    • Flows
      • Variables
        • Local Flow Variables
        • Node Variables
      • Flow Node Types
        • Core Nodes
          • In
          • Out
          • Assign
          • If
          • Switch
          • Iterator
          • Function Call
          • Subflow
          • Raise Exception
          • Exception Handler
          • Validator
        • Connector Nodes
          • Database Begin Transaction
          • Database Commit Transaction
          • Database Rollback Transaction
          • Database Query Executor
          • EVM Blockchain Functions
          • EVM Blockchain Smart Contract Functions
          • REST Service Executor
          • SOAP Service Executor
          • S3 Connector
          • SMB Connector
      • Expressions
      • Built-In Functions
        • Expression functions
          • pdk.util.Any
          • pdk.util.Array
          • pdk.util.Blockchain
          • pdk.util.Cast
          • pdk.util.Codec
          • pdk.util.Crypto
          • pdk.util.Date
          • pdk.util.File
          • pdk.util.Json
          • pdk.util.JWT
          • pdk.util.Map
          • pdk.util.Math
          • pdk.util.String
          • pdk.util.Util
        • Node functions
          • pdk.flow.Any
          • pdk.flow.Array
          • pdk.flow.File
          • pdk.flow.JsonArray
          • pdk.flow.JsonObject
          • pdk.flow.HttpRequest
          • pdk.flow.HttpResponse
          • pdk.flow.Logger
          • pdk.flow.Map
          • pdk.flow.Xml
            • pdk.flow.xml.XmlAttr
            • pdk.flow.xml.XmlElement
            • pdk.flow.xml.XmlNode
            • pdk.flow.xml.XmlDocument
            • pdk.flow.xml.XmlDocumentType
            • pdk.flow.xml.XmlDOMConfiguration
            • pdk.flow.xml.XmlDOMImplementation
            • pdk.flow.xml.XmlProcessingInstruction
            • pdk.flow.xml.XmlTypeInfo
            • pdk.flow.xml.XmlCharacterData
            • pdk.flow.xml.XmlText
            • pdk.flow.xml.XmlNamedNodeMap
          • pdk.node.BlockchainEth
          • pdk.node.S3
          • pdk.node.Smb
      • Exceptions
        • Checked Exceptions
        • Runtime Exceptions
    • Assets
      • Dictionary
      • Decision Table
      • Scorecard
      • PMML
    • Connectors
      • DB Connector
        • Prepared Query
        • Dynamic Query
        • Query input parameters
        • Stored Procedure
      • REST Connector
      • SOAP Connector
      • S3 Connector
      • SMB Connector
      • EVM Blockchain Connector
    • Global Variables
    • Appendices
      • Overview of Database Transactions
      • Reserved Words
  • Project Development Environment (IDE)
    • Project Explorer Panel
    • Flow Builder
    • Flow Node Editor
    • Data Structure Builder
    • Connector Builders
      • REST Connector Builder
      • SOAP Connector Builder
      • DB (Database) Connector Builder
      • EVM Blockchain Connectors Builder
      • S3 Connector Builder
    • Asset Builders
      • Dictionary Builder
      • Decision Table Builder
      • Scorecard Builder
      • PMML Asset Builder
    • Global Variables Panel
    • Expression Editor
    • Project Deployment and Execution
    • Cron Expression Generator
    • Test Helper
    • Debugging the Project
    • DB transactions
    • Team Collaboration Tools
      • Version Control
      • Conflict Resolver
    • Selectors
    • Error Panel
    • Local History
  • Home and Administration Guide
    • Organization and Subscription
    • Organization Team
    • Repositories and Projects
    • Environments
    • Deployments
    • Database Provisioning
    • Roles and Permissions
  • Logs and Troubleshooting
    • Request/Call Logs
    • Deployment Logs
    • Application Logs
  • Appendix: Example Project
    • Risk Mitigation Solution
Powered by GitBook
On this page
  • How to Create a REST Connector
  • How to Set Up the REST Connector
  • How to configure the connector service from scratch?
  • How to test the connector service?
  • Additional operations with REST Connector
  • Additional operations with Connector services
  • Additional operations with parameters
  1. Project Development Environment (IDE)
  2. Connector Builders

REST Connector Builder

PreviousConnector BuildersNextSOAP Connector Builder

Last updated 6 months ago

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.

How to Create a REST Connector

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.

How to Set Up the REST Connector

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.

How to configure the connector service from scratch?

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

  1. Boolean — value “true” or “false”

  2. String — text, for example, “Peter Peterson”

  3. Integer — number, for example, “22”

  4. Float — floating-point or decimal number, for example, “0.1234”

  5. Date — specify the date value in the format yyyy-mm-dd, for example ‘'1993-05-31’'.

  6. 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:

  1. Boolean — value “true” or “false”

  2. String — text, for example, “Peter Petenson”

  3. Integer — number, for example, “22”

  4. Float — floating-point or decimal number, for example, “0.1234”

To filter parameters to find the necessary parameters.

How to test the connector service?

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.

Additional operations with REST Connector

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:

  1. Edit or simply clicking on the name of the connector — allows you to open the REST Connector.

  2. Copy — allows you to copy the connector to transfer it later.

  3. 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).

  4. Cut — allows you to cut connectors for later transfer.

  5. Paste — allows you to paste a connector. It is not available unless you have previously used the Copy or Cut options.

  6. Rename — allows you to rename the connector.

  7. Delete — allows you to delete the connector.

Additional operations with Connector services

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:

  1. New REST Connector — allows you to create the new service.

  2. New folder — allows you to create a new folder.

  3. Rename — allows you to rename the service.

  4. Copy — allows you to copy the service to transfer it later.

  5. 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).

  6. Paste — allows you to paste service. It is not available unless you have previously used the Copy or Cut options.

  7. Delete — allows you to delete the service.

Additional operations with parameters

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:

  1. Add — allows you to add a new parameter.

  2. Copy — allows you to copy the parameter to transfer it later.

  3. Paste — allows you to paste parameters. It is not available unless you have previously used the Copy or Cut options.

  4. 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.