【发布时间】:2020-02-05 17:07:42
【问题描述】:
该项目使用招摇。 有如下代码。
@swagger_auto_schema(
manual_parameters=[
Parameter('download', IN_QUERY,
'Set `Content-Disposition=attachment` to make browser to download file'
'instead of showing it.',
type='bool'),
Parameter('share_id', IN_PATH, type='uuid')
],
security=[],
responses={'400': 'Validation Error (e.g. base64 is wrong)',
'200': VideoSerializer}
)
请解释每个参数的作用。
我阅读了文档,但了解甚少...
对'200': VideoSerializer特别感兴趣
【问题讨论】:
标签: django django-rest-framework swagger drf-yasg