Skip to content

Instantly share code, notes, and snippets.

@wlk
Created June 18, 2017 11:58
Show Gist options
  • Save wlk/287911382aa366e1b5cb9373d86a639f to your computer and use it in GitHub Desktop.
Save wlk/287911382aa366e1b5cb9373d86a639f to your computer and use it in GitHub Desktop.
{
"data": {
"id": "1",
"type": "books",
"attributes": {
"date_published": "1954-07-29",
"title": "The Fellowship of the Ring",
"created_at": "2017-06-18 11:30:16",
"updated_at": "2017-06-18 11:30:16"
},
"relationships": {
"chapters": {
"links": {
"self": "/v1/books/1/relationships/chapters",
"related": "/v1/books/1/chapters"
}
},
"firstChapter": {
"links": {
"self": "/v1/books/1/relationships/firstChapter",
"related": "/v1/books/1/firstChapter"
}
},
"series": {
"links": {
"self": "/v1/books/1/relationships/series",
"related": "/v1/books/1/series"
},
"data": {
"id": "1",
"type": "series"
}
},
"author": {
"links": {
"self": "/v1/books/1/relationships/author",
"related": "/v1/books/1/author"
},
"data": {
"id": "1",
"type": "authors"
}
},
"stores": {
"links": {
"self": "/v1/books/1/relationships/stores",
"related": "/v1/books/1/stores"
}
},
"photos": {
"links": {
"self": "/v1/books/1/relationships/photos",
"related": "/v1/books/1/photos"
}
}
},
"links": {
"self": "/v1/books/1"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment