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

Handle relationship URLs #4

Open
tobyzerner opened this issue Dec 14, 2018 · 0 comments
Open

Handle relationship URLs #4

tobyzerner opened this issue Dec 14, 2018 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@tobyzerner
Copy link
Owner

tobyzerner commented Dec 14, 2018

As per:
https://jsonapi.org/format/#fetching-relationships
https://jsonapi.org/format/#crud-updating-relationships

These can be handled automatically via the Update endpoint.
PATCH: $resource->setValue(...)
POST: $resource->attach($model, $field, $related)
DELETE: $resource->detach(...)

@tobyzerner tobyzerner added the enhancement New feature or request label Dec 14, 2018
@tobyzerner tobyzerner added this to the v1.1 milestone Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant