Created
August 15, 2015 22:47
-
-
Save ceritium/b72b433c895c56b6ebdf 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
| { | |
| "links": { | |
| "self": "http://example.com/posts", | |
| "next": "http://example.com/posts?page[offset]=2", | |
| "last": "http://example.com/posts?page[offset]=10" | |
| }, | |
| "data": [{ | |
| "type": "posts", | |
| "id": "1", | |
| "attributes": { | |
| "title": "JSON API paints my bikeshed!" | |
| }, | |
| "relationships": { | |
| "author": { | |
| "links": { | |
| "self": "http://example.com/posts/1/relationships/author", | |
| "related": "http://example.com/posts/1/author" | |
| }, | |
| "data": { "type": "people", "id": "9" } | |
| }, | |
| "comments": { | |
| "links": { | |
| "self": "http://example.com/posts/1/relationships/comments", | |
| "related": "http://example.com/posts/1/comments" | |
| }, | |
| "data": [ | |
| { "type": "comments", "id": "5" }, | |
| { "type": "comments", "id": "12" } | |
| ] | |
| } | |
| }, | |
| "links": { | |
| "self": "http://example.com/posts/1" | |
| } | |
| }], | |
| "included": [{ | |
| "type": "people", | |
| "id": "9", | |
| "attributes": { | |
| "first-name": "Dan", | |
| "last-name": "Gebhardt", | |
| "twitter": "dgeb" | |
| }, | |
| "links": { | |
| "self": "http://example.com/people/9" | |
| } | |
| }, { | |
| "type": "comments", | |
| "id": "5", | |
| "attributes": { | |
| "body": "First!" | |
| }, | |
| "links": { | |
| "self": "http://example.com/comments/5" | |
| } | |
| }, { | |
| "type": "comments", | |
| "id": "12", | |
| "attributes": { | |
| "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