Skip to content

Instantly share code, notes, and snippets.

@BigBlueHat
Created April 18, 2020 15:06
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 BigBlueHat/dff485b79efcea49d41953a5785d5e3f to your computer and use it in GitHub Desktop.
Save BigBlueHat/dff485b79efcea49d41953a5785d5e3f to your computer and use it in GitHub Desktop.
jsonapi-ld maybe
{
"@context": [{
"type": "@type",
"id": "@id",
"none": "@none",
"language": "@language",
"direction": "@direction",
"json": "@json"
},
{
"data": "@nest",
"@base": "http://example.com/",
"@vocab": "http://example.com/"
}],
"data": [{
"type": "articles",
"id": "1",
"attributes": {
"title": "JSON:API paints my bikeshed!",
"body": "The shortest article. Ever.",
"created": "2015-05-22T14:56:29.000Z",
"updated": "2015-05-22T14:56:28.000Z"
},
"relationships": {
"author": {
"data": {"id": "42", "type": "people"}
}
}
}],
"included": [
{
"type": "people",
"id": "42",
"attributes": {
"name": "John",
"age": 80,
"gender": "male"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment