我有一个返回 tar 文件的端点。当我在邮递员中对其进行测试时,它工作正常,并且下载了 tar 文件,但是随着大摇大摆,我得到了以下错误
这是我招摇的端点代码
'/logs/generate':
post:
tags:
- tag
summary: Download the logs
description: Download the logs
responses:
'200':
description: The corresponding file
content:
application/x-tar:
schema:
type: string
format: binary
'400':
$ref: '#/components/responses/400ClientError'
'404':
$ref: '#/components/responses/404NotFound'
'500':
$ref: '#/components/responses/500ServerError'