Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Support for Fetching Relationship Responses? #420

Open
coneybeare opened this issue Oct 18, 2021 · 0 comments
Open

Support for Fetching Relationship Responses? #420

coneybeare opened this issue Oct 18, 2021 · 0 comments

Comments

@coneybeare
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant