Forum Discussion

rl_py's avatar
rl_py
Occasional Visitor
5 months ago

python flask swagger

"""
this is cancel task
---
tags:
- task/{task_id}/cancel
summary: 取消/终止任务
description: 取消/终止任务,当任务是queued是取消任务,当任务是started则是终止任务
components:
securitySchemas:
JWTAuth:
type: http
scheme: bearer
security:
- BearerAuth: []
parameters:
- in: path
name: task_id
schema:
oneOf:
- type: integer
- type: string
format: uuid
required: true
description: integer or uuid type
responses:
200:
description: cancel success
content:
application/json:
schema:
$ref: '#/components/schemas/RespSchemaSuccess'
type: object
400:
description: cancel failure
content:
application/json:
schema:
$ref: '#/components/schemas/RespSchemaFailure'
""" this is my code,but i can't authenticate by bear token,in docs that don't have a place to input bear token,how can i change this code
No RepliesBe the first to reply