Ember Data's REST Adapter except the JSON from the server in this format:
Taken from the documentation: http://ift.tt/1I7D6gH
{
"post": {
"id": 1,
"title": "Node is not omakase",
"comments": [1, 2, 3]
},
"comments": [{
"id": 1,
"body": "But is it _lightweight_ omakase?"
},
{
"id": 2,
"body": "I for one welcome our new omakase overlords"
},
{
"id": 3,
"body": "Put me on the fast track to a delicious dinner"
}]
}
Is it possible to have this kind of JSON format back from strongloop?
http://stackoverflow.com/questions/29863278/strongloop-with-emberjs/32493182#32493182
RépondreSupprimer