14
我在需要返回pdf文件的Swagger REST API中有一个get call。没有清楚的示例/文档说明如何在不引起语法错误的情况下执行此操作。如何指定pdf在swagger中返回?
responses:
200:
description: Returns PDF
schema: [application/pdf]
和
responses:
200:
description: Returns PDF
schema:
type: file
和
responses:
200:
description: Returns PDF
schema:
type: [application/pdf]
全部失败。这甚至有可能吗?