Tag: swagger
-
Fixing "io.swagger.client.ApiException: Content type "text/plain" is not supported" problem
Let's say we have a endpoint definition in swagger like this : /hello: post: summary: Say hello description: '' operationId: sayHello consumes: - text/plain produces: - application/json parameters: - in: body name: body required: false schema: type: string responses: '200': description: successful operation schema: $ref: '#/definitions/Hello' You…