Created
January 16, 2017 05:10
-
-
Save jephjohnson/7c0a55924dc77f61e061d13cc6c29f97 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
{ | |
"data": [ | |
{ | |
"id": "1", | |
"type": "posts", | |
"attributes": { | |
"title": "First post" | |
}, | |
"relationships": { | |
"comments": { | |
"data": [ | |
{ | |
"id": "5", | |
"type": "comments" | |
} | |
] | |
} | |
} | |
}, | |
{ | |
"id": "2", | |
"type": "posts", | |
"attributes": { | |
"title": "Second post" | |
}, | |
"relationships": { | |
"comments": { | |
"data": [ | |
{ | |
"id": "3", | |
"type": "comments" | |
} | |
] | |
} | |
} | |
} | |
], | |
"included": [ | |
{ | |
"id": "3", | |
"type": "comments", | |
"attributes": { | |
"body": "first!" | |
} | |
}, | |
{ | |
"id": "5", | |
"type": "comments", | |
"attributes": { | |
"body": "inane drivel" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment