Slide 52
Slide 52 text
{
"data": [
{
"type": "article",
"id": "1",
"attributes": {
"title": "JSON:API paints my bikeshed!"
},
"relationships": {
"author": {
"data": { "type": "person", "id": "9" }
},
"comments": {
"data": [
{ "type": "comments", "id": "5" }
]
}
}
}
],
// continued ...
// ... continued
"included": [
{
"type": "person",
"id": "9",
"attributes": {
"name": "Dan Gebhardt"
}
},
{
"type": "comments",
"id": "5",
"attributes": {
"body": "First!"
},
"relationships": {
"author": {
"data": { "type": "person", "id": "9" }
}
}
}
]
}