Skip to content

Instantly share code, notes, and snippets.

@dylanbeattie
Last active November 5, 2015 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylanbeattie/95383bff404621e35b7c to your computer and use it in GitHub Desktop.
Save dylanbeattie/95383bff404621e35b7c to your computer and use it in GitHub Desktop.
{
"data": {
"type": "musician",
"id": "1234",
"attributes": { },
"relationships": {
"bands": {
"links": {
"self": "/musicians/1234/relationships/bands",
"related": "/musicians/1234/bands"
},
"data": [
{ "type": "band", "id": "56" },
{ "type": "band", "id": "78" }
]
}
}
},
"included": [
{
"type": "band",
"id": "56",
"attributes": { },
"links": { "self" : "/bands/56" },
"relationships": {
"shows" : {
"links" : {
"self": "/bands/56/relationships/shows",
"related": "/bands/56/shows"
},
"data" : [
{ "type" : "show", "id" : "795deef3" },
{ "type" : "show", "id" : "ea812501" },
]
}
}
},
{
"type": "band",
"id": "78",
"attributes": { },
"links": { "self" : "/bands/78" },
"relationships": {
"shows" : {
"links" : {
"self": "/bands/78/relationships/shows",
"related": "/bands/78/shows"
},
"data" : [
{ "type" : "show", "id" : "18def8ab" },
{ "type" : "show", "id" : "08569598" },
]
}
}
},
{
"type": "show",
"id" : "795deef3",
"attributes" : { "date" : "2015-11-08T19:30:00", "venue" : "Moe's Jazz Bar" }
},
{
"type": "show",
"id" : "ea812501",
"attributes" : { "date" : "2015-11-21T19:30:00", "venue" : "The Blues Cafe" }
},
{
"type": "show",
"id" : "18def8ab",
"attributes" : { "date" : "2015-11-18T19:30:00", "venue" : "Rockin' Rick's Rock'n'Roll Roadhouse" }
},
{
"type": "show",
"id" : "08569598",
"attributes" : { "date" : "2015-11-21T19:30:00", "venue" : "The Porterhouse" }
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment