This version of the connector is outdated. Show recent version
Integray Endpoint connector allows us to communicate with internal endpoints by HTTP protocol with basic request types i.e. POST
, GET
, and GET New data
.
The connector simplifies the work with the internal endpoint. Compared to the Rest API connector, here, you don't need to specify:
-
Rest API connection i.e. URI and authorisation,
-
Rest API endpoint i.e. endpoint, data content type, endpoint headers.
Integray endpoint connector will do above mentioned based on your selected Company and Endpoint. Your task will remain to select the request type, configure the timeout, define the output format type, and in the case of the POST request type, specify the Data i.e. the body content.
If you select GET New data
as the request type, the connector will ensure that the get method will read only the new data based on the data checkpoint. The data checkpoint is the time stamp in DateTime format. The data checkpoint also considers the endpoint data's unique ID to be able to differentiate if there would be more endpoint data read with the same time stamp.
Data
The data field is available only for the request type: POST
.
If the input schema is selected, its data can be accessed by the following placeholders:
Placeholder | Description |
---|---|
${input} |
Replaced by whole input |
${input.property} |
Replaced by a single cell of input |
Using placeholders
The placeholders can be used to dynamically create content for the request body
or to modify the configurations.
Input data can be referred by using the placeholders:
-
${input.ObjectID}
will be replaced by the value inObjectID
property of the connector's input data. -
${input}
placeholder will be replaced by the whole input data.
Placeholders for body content creation
The body content can be configured directly or can be generated based on the input by the usage of the placeholders. The final JSON or XML (based on configuration) takes into account also the data type of the input columns. For example, the numbers are in JSON as numbers (without double quotes).
Assume the connector input data in the following format:
ID (Number) | Name (String) | Items (Complex) |
---|---|---|
1 | Alice | [{"ID":1},{"ID":2}] |
2 | Bob | [{"ID":3},{"ID":4}] |
Examples of using single cell
placeholders for the request body
creation for JSON
format. In this way also the Complex
or JSON
types can be serialized.
{
"CustomerID": ${input.ID},
"CustomerName": ${input.Name},
"IsActive": true,
"ItemIDs": ${input.Items}
}
request body
[
{
"CustomerID": 1,
"CustomerName": "Alice",
"IsActive": true,
"ItemIDs":
[
{"ID":1},
{"ID":2}
]
},
{
"CustomerID": 2,
"CustomerName": "Bob",
"IsActive": true,
"ItemIDs":
[
{"ID":3},
{"ID":4}
]
}
]
or the whole body
placeholder
${input}
will generate the following request body
which uses the property names as the column names from the input schema
[
{
"ID": 1,
"Name": "Alice",
"Items":
[
{"ID":1},
{"ID":2}
]
},
{
"ID": 2,
"Name": "Bob",
"Items":
[
{"ID":3},
{"ID":4}
]
}
]
${input.Items}
Complex
type
[
{"ID":1},
{"ID":2}
]
Request type
Supported HTTP methods. Based on the selected request type, more configuration options are available.
Request type | CRUD |
---|---|
POST | Create |
GET | Read |
GET New data | Read |
Configurations
Input & Output Schema
Input
Data schema is optional
The connector does not expect a specific schema. The required data structure can be achieved by correct configuration. Although the selected connector doesn't require a schema generally, the individual integration task step may need to match the output data structure of the preceding task step and use a data schema selected from the repository or create a new input schema.
Output
The result of the API call is stored in the Content
or the ContentText
of the output schema.
There are two possibilities for the output data format:
-
Base64
- Data will beBase64
encoded and returned into the output propertyContent
. -
Text
- Data will be encoded with selected OutpuEncoding into the output propertyContentText
.
In addition to the content, the output also contains the StatusCode
and the Headers
of the response.
For more information about status codes, see the document HTTP response status codes.
and the HTTP Headers headers.
Example
Example output data for OutputFormat set to Base64: Rest API Output 2.0.0
StatusCode: String |
Content: Base64 |
Headers: Rest API Header 1.0.0 |
---|---|---|
201 | ewogICAgIlN1Y2Nlc3MiOnRydWUKfQ== | Output headers data |
Output headers data: Rest API Header 1.0.0
Key: String |
Value: String |
---|---|
Transfer-Encoding | chunked |
Connection | keep-alive |
Cache-Control | private |
Date | Thu, 17 Feb 2022 19:58:36 GMT |
Server | nginx/1.14.1 |
X-AspNet-Version | 4.0.30319 |
X-Powered-By | ASP.NET |
where decoded response Content
is:
{
"Success":true
}
Example output data for OutputFormat set to Text: Rest API Output 2.0.0
StatusCode: String |
ContentText: String |
Headers: Rest API Header 1.0.0 |
---|---|---|
201 | { "Success":true } | Output headers data |
Output headers data: Rest API Header 1.0.0
Key: String |
Value: String |
---|---|
Transfer-Encoding | chunked |
Connection | keep-alive |
Cache-Control | private |
Date | Thu, 17 Feb 2022 19:58:36 GMT |
Server | nginx/1.14.1 |
X-AspNet-Version | 4.0.30319 |
X-Powered-By | ASP.NET |
Rest API output (ver. 2.1.0)
Column | Data type | Allow null | Description |
---|---|---|---|
StatusCode | String | No | HTTP response status code |
Headers | Rest API header 1.0.0 |
Yes | Received HTTP headers as key/value pairs |
Content | Base64 | Yes | Serialized content of HTTP response into Base64 |
ContentText | String | Yes | Serialized content of HTTP response into string |
ContentJSON | JSON | Yes | Serialized content of HTTP response into JSON |
Rest API header (ver. 1.0.0)
Column | Data type | Allow null | Description |
---|---|---|---|
Key | String | No | Header name |
Value | String | Yes | Header value |
Release notes
4.4.0
4.3.0
- Added method for downloading new endpoint data.
4.1.4
- Added method for downloading new endpoint data.
4.1.3
- Add current TaskRunId into the custom int-parent-taskrun-id header.
4.1.0
- Plugin binaries update as a result of included connector change.
4.0.1
- Plugin binaries update as a result of included connector change.
4.0.0
- Plugin binaries update as a result of included connector change.