Created
July 10, 2021 18:34
-
-
Save davidbarratt/893d7a17a39acbb9644c05f3376a5a31 to your computer and use it in GitHub Desktop.
JSON:API Context
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@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