Created
April 21, 2015 19:20
-
-
Save mattias-lidman/d8922da45eab9ef8cee7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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": [{ | |
"type": "articles", | |
"id": "1", | |
"title": "JSON API paints my bikeshed!", | |
"links": { | |
"self": "http://example.com/articles/1", | |
"author": { | |
"self": "http://example.com/articles/1/links/author", | |
"related": "http://example.com/articles/1/author", | |
"linkage": { "type": "people", "id": "9" } | |
}, | |
"comments": { | |
"self": "http://example.com/articles/1/links/comments", | |
"related": "http://example.com/articles/1/comments", | |
"linkage": [ | |
{ "type": "comments", "id": "5" }, | |
{ "type": "comments", "id": "12" } | |
] | |
} | |
} | |
}], | |
"included": [{ | |
"type": "people", | |
"id": "9", | |
"first-name": "Dan", | |
"last-name": "Gebhardt", | |
"twitter": "dgeb", | |
"links": { | |
"self": "http://example.com/people/9" | |
} | |
}, { | |
"type": "comments", | |
"id": "5", | |
"body": "First!", | |
"links": { | |
"self": "http://example.com/comments/5" | |
} | |
}, { | |
"type": "comments", | |
"id": "12", | |
"body": "I like XML better", | |
"links": { | |
"self": "http://example.com/comments/12" | |
} | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment