Skip to content

Instantly share code, notes, and snippets.

@davidbarratt
Created July 10, 2021 18:34
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 davidbarratt/893d7a17a39acbb9644c05f3376a5a31 to your computer and use it in GitHub Desktop.
Save davidbarratt/893d7a17a39acbb9644c05f3376a5a31 to your computer and use it in GitHub Desktop.
JSON:API Context
{
"@context": {
"@vocab": "",
"jsonapi": {
"@id": "https://jsonapi.org/",
"@prefix": true,
"@context": {
"@vocab": "https://jsonapi.org/"
}
},
"link": "http://www.iana.org/assignments/relation/",
"id": "@id",
"type": "@type",
"attributes": "jsonapi:attributes",
"data": "jsonapi:data",
"errors": {
"@id": "jsonapi:errors",
"@container": "@set"
},
"included": "jsonapi:included",
"links": {
"@id": "jsonapi:links",
"@context": {
"self": {
"@id": "link:self",
"@type": "@id"
},
"related": {
"@id": "link:related",
"@type": "@id"
},
"first": {
"@id": "jsonapi:first",
"@type": "@id"
},
"last": {
"@id": "jsonapi:last",
"@type": "@id"
},
"prev": {
"@id": "link:prev",
"@type": "@id"
},
"next": {
"@id": "link:next",
"@type": "@id"
}
}
},
"meta": "jsonapi:meta",
"relationships": {
"@id": "jsonapi:relationships",
"@container": "@type"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment