Can we set global "consumes" and "produces" in Swagger?

Viewed 4614

In the each path I need to set consumes and produces. Can I set them globally?

post:
      summary: ""
      description: ""
      consumes:
      - "application/json"
      - "application/xml"
      produces:
      - "application/xml"
      - "application/json"
1 Answers
Related