2

It seems you can only refer to the model itself in an unmodified form from a payload/body section:

# Item [/]
+ Model

        { "name" : "an item" }

## GET
+ Response 200

    [Item][]

Is there any way to return an array of the model or use the model as a field? I.e. something like

+ Response 200

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

1 回答 1

1

This is not possible yet.

It should be available soon using Traits.

于 2014-04-17T10:43:49.387 回答