Our Web API returns Ember Data compatible objects with relationships defined like so:
{containers: [
{
id: "12345678",
name: "name",
items: [1, 2]
}
],
items: [
{
id: 1
name: "item 1"
},
{
id: 2
name: "item 2"
}
]
}
Notice that the item IDs are included in the container object, and that each related item is sideloaded in the same call. Is there any way to set up this kind of relationship with RestKit?