目前没有专门的支持这样做。但是,实现这一目标的方法很少。
我更喜欢使用您喜欢的降价格式在请求描述中讨论它,例如:
### Add a new User [POST]
To add a User send a JSON .....
+ Request (application/json)
Data about user being created. Where age attribute is optional.
+ Body
{
"name": "A name",
"age": 30
}
也许:
To add a User send a JSON .....
+ Request (application/json)
Data about user being created. With following attributes are:
+ `name` ... name of the user
+ `age` (optional) ... age of the user
+ Body
{
"name": "A name",
"age": 30
}
有关更多示例,请参阅http://docs.gtdtodoapi.apiary.io文件夹集合资源。
您还可以始终指定描述正文有效负载的 JSON 模式。注意讨论消息体属性的专门支持正在制作中(https://github.com/apiaryio/api-blueprint/issues/25)