Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant