Created
September 28, 2014 19:40
-
-
Save joachimhs/473060d7fd90f8bb1ad6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSON Payload: | |
{ | |
"raspberryPis": [ | |
{ | |
"id": "piHome", | |
"name": "piHome", | |
"category": "raspberryPis", | |
"content": null, | |
"projects": [ | |
"projects_testProject" | |
], | |
"installedVersion": "0.1.0", | |
"online": true | |
} | |
] | |
} | |
Model: | |
Piaas.RaspberryPi = DS.Model.extend({ | |
projects: DS.hasMany('project', {async: true}), | |
installedVersion: DS.attr('string'), | |
online: DS.attr('boolean') | |
}); | |
Piaas.Project = DS.Model.extend({ | |
content: DS.attr('string') | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment