{
"data": {
"id": "1",
"type": "books",
"attributes": {
"title": "The Great Gatsby",
"author": "F. Scott Fitzgerald",
"published": "1925",
"publisher": "Scribner",
"pages": 218
},
"relationships": {
"reviews": {
"links": {
"self": "/books/1/reviews",
"related": "/books/1/reviews"
}
}
},
"links": {
"self": "/books/1"
}
},
"errors": [
{
"status": "418",
"title": "I'm a teapot",
"detail": "Any attempt to brew coffee with a teapot should result in this error."
}
],
"included": [
{
"id": "1",
"type": "reviews",
"attributes": {
"rating": 5,
"comment": "This book is a classic."
},
"relationships": {
"book": {
"data": { "id": "1", "type": "books" }
}
},
"links": {
"self": "/reviews/1"
}
},
{
"id": "2",
"type": "reviews",
"attributes": {
"rating": 3,
"comment": "It's okay, but not my favorite."
},
"relationships": {
"book": {
"data": { "id": "1", "type": "books" }
}
},
"links": {
"self": "/reviews/2"
}
}
]
}