I try to implement swagger documentation for the project using flasgger. When I describe body fields - it works ok, but when I try to describe header fields, flasgger doesn't present the description of the parameters on the web.
An example of .yml file for flasgger.
description: Client side interaction with server
consumes:
- "application/json"
parameters:
- in: header
name: headers_params
required: true
schema:
id: endpoint_header
required:
- session_token
properties:
session_token:
type: string
description: session token
- in: body
name: body_params
required: true
schema:
id: endpoint_body
required:
- parameter1
- parameter2
properties:
parameter1:
type: string
description: The parameter1 description
parameter2:
type: string
description: The parameter2 description
responses:
500:
description: The error on the server side
200:
description: Access token for user intercation
And, its what I see on web: enter image description here
What structure of .yml file should I follow to get the session token described in the header as well as body parameters?