Call REST

With this node you can call a function on a REST server.

It has the following configuration options:
  • HTTP Method: here you can define the HTTP method.
  • Content Type: here you can define whether to use JSON or XML to communicate with the server.
  • URL: here you can define the URL of the REST server.
    You can use explicit parameters. Select + to add a parameter.
    • Name: here you can enter the name of the parameter. Select the pencil to open Expression Builder.
    • Value: here you can enter the value of the parameter. Select the pencil to open Expression Builder.
  • Request Data: here you can define the request data. Select the pencil to open Expression Builder.
    Note: In case file upload is enabled, the request data needs to be a JSON object (or a serialized JSON object) that only contains string values.
  • Upload files: here you can define if files needs to be uploaded or not. Options:
    • None: if you select this option, no file will be uploaded.
    • Single: if you select this option, only one file will be uploaded.
    • Multiple: if you select this option, no file will be uploaded,the REST call is executed for every file, resulting in an array of the responses.
  • Field name for uploaded file: here you can define the name of the field the uploaded file is associated with. You can change this if it is required by the REST server.
  • File to upload: here you can select the file(s) to upload. Select the pencil to open Expression Builder.
  • Verify SSL Certificate: if you select this checkbox, the certificate of the server is verified (HTTPS only). Disable this checkbox when using self-signed certificates.
  • SSL Version: here you can define the SSL version to use (HTTPS only). In normal cases you can set the value to Automatic, but some servers require to specify the SSL version.
  • Authentication: here you can specify the HTTP authentication scheme.
  • Put result in variable: here you can define a variable to store the results. In case multiple files are uploaded, this variable is an array of the results, one entry for each file. If the returned JSON cannot be stored in a variable, an error will be generated.
  • Put response headers in variable: here you can define an optional variable into which the HTTP response headers are stored. These headers are stored in an object where the key string maps to values which are arrays of strings. In case of multiple file upload, this variable is an array of the individual header objects, with one entry for each file.