【发布时间】:2019-01-11 12:02:02
【问题描述】:
标题包含了我的全部问题。当端点接受任何类型时,如何在 swagger 中指定消费属性。
例如,这里是OneDrive simple file upload。
【问题讨论】:
标签: swagger
标题包含了我的全部问题。当端点接受任何类型时,如何在 swagger 中指定消费属性。
例如,这里是OneDrive simple file upload。
【问题讨论】:
标签: swagger
application/octet-steam 是general MIME type,意思是“未知的二进制数据”。
consumes:
- application/octet-stream
同样,如果服务器可以返回任何 MIME 类型,您可以使用通配符 MIME 类型*/* 来表示produces:
produces:
- '*/*'
# This corresponds to the request header:
# Accept: */*
【讨论】: