【问题标题】:Apiary: Refer to multiple models in a body养蜂场:指一个体内的多个模型
【发布时间】:2014-04-11 13:33:12
【问题描述】:

您似乎只能从有效负载/正文部分以未修改的形式引用模型本身:

# Item [/]
+ Model

        { "name" : "an item" }

## GET
+ Response 200

    [Item][]

有没有办法返回模型的数组或将模型用作字段? IE。像

+ Response 200

{ "items" : [ [Item][], [Item][] ]}

【问题讨论】:

标签: apiblueprint apiary.io apiary


【解决方案1】:

这还不可能。

应该很快就会使用Traits

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多