Send data via header using OpenApi 3 with method GET
Hello!
Would anyone know how to help me send data via header using the get method in OpenApi 3?
Code that doesn't work:
/version:
get:
tags:
- "version"
summary: ""
description: ""
parameters:
- name: "Content-Type"
in: "header"
description: ""
required: true
content:
application / xml:
schema:
type: string
In version 2 I can do it well.
working code:
get:
tags:
- "version"
summary: ""
description: ""
produces:
- "application / xml"
parameters:
- name: "Content-Type"
in: "header"
description: ""
required: true
type: "string"
responses:
"200":
description: "successful operation"
"400":
description: "Invalid status value"