Swagger Lookup

Description

Returns result of executing Rest request on a connection to Swagger.

This function supports nested fields.

Use

  • Select a Swagger connection in Hero_Flow.
  • Select an endpoint supported by the connection.
    • Endpoint types: GET, POST, PUT, DELETE
  • Select how value parameters are provided. 
    • Request template

      Example Behavior

      The variable is defined in the following format: {"a": ${TUPLE.field}}

      • the input field is a Long and null value: {"a": null }

      • the input field is a Long and 123: {"a": 123 }

      • the input field is a String and "123": {"a": 123 }

      The variable is defined in the following format {"a": "${TUPLE.field}" } 

      • the input field is a Long and null value: {"a": null } (without double quotes)
      • the input field is a String and null value: {"a": null } (without double quotes)

      • the input field is a Long and 123: {"a": "123" }

      • the input field is a String and "123": {"a": "123" }

    • Define field:
      • Tuple 
        • Select parameter name.
      • Custom value
        • Enter custom value.
  • Review and select/move output fields and assign data types.
  • Click OK.

Type

Swagger Lookup