This repository was archived by the owner on Jun 6, 2024. It is now read-only.
This repository was archived by the owner on Jun 6, 2024. It is now read-only.
Support for Fetching Relationship Responses? #420
Open
Description
The JSONAPI spec allows for the querying of relationship
level data, but I haven't found any examples in the docs or repo on how best to handle this. It is a little different than a normal query, in that attributes are not included, and the self
url is different:
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"links": {
"self": "/articles/1/relationships/author",
"related": "/articles/1/author"
},
"data": {
"type": "people",
"id": "12"
}
}
What is the best way to go about serializing this data using marshmallow-jsonapi?
Metadata
Metadata
Assignees
Labels
No labels