Skip to content

Instantly share code, notes, and snippets.

@iamsebastian
Created December 9, 2015 14:08
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 iamsebastian/9afad6bc56fcede54e6b to your computer and use it in GitHub Desktop.
Save iamsebastian/9afad6bc56fcede54e6b to your computer and use it in GitHub Desktop.
{
"links" : {
"self" : "localhost:3000/api/v1/users"
},
"included" : [
{
"links" : {
"self" : "localhost:3000/api/v1/bank/3"
},
"id" : "3",
"type" : "bank",
"attributes" : {
"bankname" : "Foo Bank",
"blz" : 10000000,
"id" : 3
}
},
{
"links" : {
"self" : "localhost:3000/api/v1/bank/5"
},
"id" : "5",
"type" : "bank",
"attributes" : {
"bankname" : "Bar Bank",
"blz" : 20000000,
"id" : 5
}
},
{
"id" : "14",
"links" : {
"self" : "localhost:3000/api/v1/bank/14"
},
"attributes" : {
"id" : 14,
"bankname" : "Baz Bank",
"blz" : 30000000
},
"type" : "bank"
}
],
"data" : [
{
"id" : "22",
"links" : {
"self" : "localhost:3000/api/v1/users/22"
},
"relationships" : {
"bank" : {
"data" : {
"id" : "3",
"type" : "bank"
},
"links" : {
"self" : "localhost:3000/api/v1/relationships/bank",
"related" : "localhost:3000/api/v1/bank"
}
}
},
"attributes" : {
"created-at" : "2015-12-09T09:35:46.000Z",
"email" : "foo@bar",
"real-name" : "Foo Bar",
"id" : 22,
"attributes" : null,
"bank-id" : 3,
"updated-at" : "2015-12-08T15:13:38.000Z"
},
"type" : "users"
},
{
"type" : "users",
"attributes" : {
"id" : 24,
"attributes" : null,
"bank-id" : 3,
"updated-at" : "2015-12-08T15:34:55.000Z",
"created-at" : "2015-12-09T09:35:46.000Z",
"email" : "x@x.x",
"real-name" : "The Xer"
},
"relationships" : {
"bank" : {
"links" : {
"self" : "localhost:3000/api/v1/relationships/bank",
"related" : "localhost:3000/api/v1/bank"
},
"data" : {
"id" : "3",
"type" : "bank"
}
}
},
"id" : "24",
"links" : {
"self" : "localhost:3000/api/v1/users/24"
}
},
{
"relationships" : {
"bank" : {
"data" : {
"id" : "3",
"type" : "bank"
},
"links" : {
"related" : "localhost:3000/api/v1/bank",
"self" : "localhost:3000/api/v1/relationships/bank"
}
}
},
"attributes" : {
"attributes" : null,
"bank-id" : 3,
"updated-at" : "2015-12-08T15:55:00.000Z",
"id" : 26,
"real-name" : "Hexenjäger",
"created-at" : "2015-12-09T09:11:52.000Z",
"email" : "witch@hunter"
},
"type" : "users",
"links" : {
"self" : "localhost:3000/api/v1/users/26"
},
"id" : "26"
},
{
"relationships" : {
"bank" : {
"data" : {
"type" : "bank",
"id" : "3"
},
"links" : {
"self" : "localhost:3000/api/v1/relationships/bank",
"related" : "localhost:3000/api/v1/bank"
}
}
},
"attributes" : {
"id" : 27,
"bank-id" : 3,
"attributes" : null,
"updated-at" : "2015-12-08T15:58:02.000Z",
"created-at" : "2015-12-09T09:35:46.000Z",
"email" : "o@p",
"real-name" : "P.O."
},
"type" : "users",
"id" : "27",
"links" : {
"self" : "localhost:3000/api/v1/users/27"
}
},
{
"attributes" : {
"updated-at" : "2015-12-08T16:01:32.000Z",
"bank-id" : 3,
"attributes" : null,
"id" : 28,
"real-name" : "Klebert, Klaus",
"email" : "klaus@klebert",
"created-at" : "2015-12-09T09:35:46.000Z"
},
"type" : "users",
"relationships" : {
"bank" : {
"data" : {
"id" : "3",
"type" : "bank"
},
"links" : {
"related" : "localhost:3000/api/v1/bank",
"self" : "localhost:3000/api/v1/relationships/bank"
}
}
},
"id" : "28",
"links" : {
"self" : "localhost:3000/api/v1/users/28"
}
},
{
"type" : "users",
"attributes" : {
"id" : 29,
"bank-id" : 3,
"attributes" : null,
"updated-at" : "2015-12-09T09:02:11.000Z",
"created-at" : "2015-12-09T09:35:46.000Z",
"email" : "jawohl@nein",
"real-name" : "Matthias Wohl"
},
"relationships" : {
"bank" : {
"links" : {
"self" : "localhost:3000/api/v1/relationships/bank",
"related" : "localhost:3000/api/v1/bank"
},
"data" : {
"id" : "3",
"type" : "bank"
}
}
},
"links" : {
"self" : "localhost:3000/api/v1/users/29"
},
"id" : "29"
},
{
"id" : "30",
"links" : {
"self" : "localhost:3000/api/v1/users/30"
},
"type" : "users",
"attributes" : {
"real-name" : "Moto Moto",
"created-at" : "2015-12-09T09:35:46.000Z",
"email" : "moto@hoerer",
"attributes" : null,
"bank-id" : 3,
"updated-at" : "2015-12-09T09:30:09.000Z",
"id" : 30
},
"relationships" : {
"bank" : {
"data" : {
"id" : "3",
"type" : "bank"
},
"links" : {
"self" : "localhost:3000/api/v1/relationships/bank",
"related" : "localhost:3000/api/v1/bank"
}
}
}
},
{
"relationships" : {
"bank" : {
"data" : {
"type" : "bank",
"id" : "5"
},
"links" : {
"self" : "localhost:3000/api/v1/relationships/bank",
"related" : "localhost:3000/api/v1/bank"
}
}
},
"attributes" : {
"id" : 31,
"updated-at" : "2015-12-09T09:31:08.000Z",
"attributes" : null,
"bank-id" : 5,
"email" : "nutzer@mti",
"created-at" : "2015-12-09T09:31:08.000Z",
"real-name" : "Nutzer Mit"
},
"type" : "users",
"id" : "31",
"links" : {
"self" : "localhost:3000/api/v1/users/31"
}
},
{
"links" : {
"self" : "localhost:3000/api/v1/users/34"
},
"id" : "34",
"attributes" : {
"attributes" : null,
"bank-id" : 14,
"updated-at" : "2015-12-09T11:36:33.000Z",
"id" : 34,
"real-name" : "Schwieriger Fall",
"created-at" : "2015-12-09T11:36:33.000Z",
"email" : "schwieriger@fall"
},
"type" : "users",
"relationships" : {
"bank" : {
"links" : {
"related" : "localhost:3000/api/v1/bank",
"self" : "localhost:3000/api/v1/relationships/bank"
},
"data" : {
"id" : "14",
"type" : "bank"
}
}
}
}
]
}
@iamsebastian
Copy link
Author

screenshot from 2015-12-09 16-04-04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment