【发布时间】:2016-11-27 23:01:16
【问题描述】:
我正在为一个 API 编写一个 swagger 定义文件。该 API 用于 GET 请求
/path/to/my/api:
get:
summary: My Custom API
description: |
Gets a List of FooBar IDs
produces:
- application/json
tags:
- FooBar
responses:
"200":
description: successful operation
schema:
$ref: "#/definitions/MyCustomType"
...
MyCustomType:
type: object
properties:
myCustomObject
type: ??? # list of string?
【问题讨论】:
标签: collections yaml swagger