'Swagger yaml response html
I need to format my response (examples) in swagger, at the moment I have this but it doesn't work:
/**
* @swagger
* /instance/status:
* post:
* security:
* - bearerAuth: []
* description: Get status instance
* operationId: GetStatus
* tags:
* - Intance
* consumes:
* - multipart/form-data
* produces:
* - application/json
* - application/xml
* requestBody:
* required: true
* content:
* application/x-www-form-urlencoded:
* schema:
* type: object
* properties:
* instance:
* type: Number
* responses:
* '201':
* description: Get status instance
* examples:
* html:
* value: 'first line <br />second line<br />....'
*/
it returns me this:
"Get status instance" Only
How can I do to print the html too?
Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
