uniquely identified for easy linkage • Supports relationships and compound documents for excellent object graph serialization • Registered with IANA as application/vnd.api+json JSON:API
agnostic to where the data is sourced • Helpers used in endpoints to link to data sets from pinax import api class AuthorResource(api.Resource): api_type = "author" model = Author attributes = [ "name", ]
Either a non-collection (many to one) or collection (many to many) from pinax import api @api.register class AuthorResource(api.Resource): api_type = "author" model = Author attributes = [ "name", ] relationships = { "posts": api.Relationship("post", collection=True), "publisher": api.Relationship("publisher") }