Question

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][] ]}
Was it helpful?

Solution

This is not possible yet.

It should be available soon using Traits.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top