json-api-server icon indicating copy to clipboard operation
json-api-server copied to clipboard

Handle relationship URLs

Open tobyzerner opened this issue 6 years ago • 0 comments
trafficstars

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 avatar Dec 14 '18 02:12 tobyzerner