【发布时间】:2017-08-11 18:17:36
【问题描述】:
我有一个定义 HEAD 操作的 Swagger 规范:
head:
description: show flight exist or not.
parameters:
- name: flight_no
in: path
type: string
description: Flight_no
required: true
produces:
- application/json
- application/xml
responses:
200:
description: success response
schema:
type: array
items:
$ref: '#/definitions/Data'
'404':
description: flight does not exist
在 Swagger UI v. 2 中,此 HEAD 操作没有“试用”按钮。如何为 HEAD 添加“试用”?
【问题讨论】:
标签: swagger swagger-ui swagger-2.0