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

allow optional relationships on requests #15

Merged
merged 1 commit into from
Nov 29, 2019

Conversation

DeanWay
Copy link
Owner

@DeanWay DeanWay commented Nov 27, 2019

refs: #14
of note here, the JSON api somewhat differentiates between request relationships and response relationships. On request, it only specifies that if a relationships object is provided by the request that it must have a data member: https://jsonapi.org/format/#crud-creating

This makes some sense, more sensibly for a client to provide the types and ids of objects they want the created resource to be related to, rather than the href information for those relationships

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

Successfully merging this pull request may close these issues.

1 participant