uttam
uttam

Reputation: 455

Swagger response header setting

I am trying to write a swagger json-schema, the response produces either one of these

So, how should i set the response header content type and also the produces MIME type?

enter link description here

Upvotes: 1

Views: 1571

Answers (1)

You can do something like:

/imagePath:
  get:
    summary: Something ...
    produces: [ image/*, text/plain ]
    responses:
      ...

Upvotes: 1

Related Questions