Create a Swagger Output
Create an Output for Swagger in Hero Platform_
- Open Hero Platform_.
- Open Integration from the navigation menu and select Outputs.
- Click Create New Output.
- Give the Output a name and select a Swagger Connection.
- Configure the Swagger Output data.
- Select an endpoint from the drop-down menu.
- Enter a template for the email.
- Input fields from the selected endpoint are displayed below.
- Enter text in JSON format in the Request Template box. This is the body of the sent HTTP request.
Additional added tuple fields are displayed below in the field mapping section of the configuration.
Example Behavior
The variable is defined in the following format: {"a": ${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": "${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" }
- From the field mapping table:
- Confirm or change field names.
- Confirm or change field data types.
- Confirm the arrangement of fields.
- Click OK to save the Output.