Correct the flasgger deffinition

This commit is contained in:
Guille Gutierrez 2023-02-14 05:54:51 -05:00
parent dc60a0b7ca
commit e17da5b265
2 changed files with 6 additions and 1 deletions

View File

@ -50,7 +50,7 @@ with open("hub_api/docs/openapi-specs.yml", "r") as stream:
"specs": [ "specs": [
{ {
"endpoint": 'apispec', "endpoint": 'apispec',
"route": '/apispec.json', "route": '/v1.4/apispec.json',
"rule_filter": lambda rule: True, # all in "rule_filter": lambda rule: True, # all in
"model_filter": lambda tag: True, # all in "model_filter": lambda tag: True, # all in
} }

View File

@ -59,6 +59,11 @@ paths:
schema: schema:
$ref: '#/components/schemas/succeed' $ref: '#/components/schemas/succeed'
headers: headers:
session_id:
type: string
format: uuid
description: Session id
example: '77e1c83b-7bb0-437b-bc50-a7a58e5660ac'
token: token:
type: string type: string
format: uuid format: uuid