Hello all,
I am developing my own connector with an action that should return html text by id using api method.
My connector action is described as following:
paths:
/getTemplate:
get:
produces: [application/json, text/html]
parameters:
- {name: id, in: query, description: Template ID, required: true, type: string}
responses:
default:
description: default
schema:
type: object
properties:
template: {type: string, description: template, title: '', format: html}
If I pass the template as 'text/html' my flow failed with error 'The API operation "getTemplate" requires the property 'body' to be of type 'Object' but is of type 'String'.'
If I pass the template as application/json, I convert the HTML to base64 string and put it to JSON object, but in this way I get the same base64 string (not HTML) in response. My JSON object looks like the following:
{ 'template': '<base64>' }
How I can pass and get HTML text in the connector action?
Thank you.
Regards.

Report
All responses (
Answers (