I know this may sound odd, but we have an API where we return back out generated HTML content depending on payloads passed in.
I'm just wondering what is the formal definition of a Open API call for such a api, specifically the responses section below.
Is it as simple as this?
"paths": {
"/instance/UI/{instanceCode}/{identifier}": {
"get": {
"summary": "Returns the UI which allow the instances answer to be managed by a user",
"operationId": "instanceUIGet",
"parameters": [
{
"name": "instanceCode",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "identifier",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Returns the HTML page for a UI to manage the instance.",
"content": {
"text/html": {
}
}
}
}
}
},