Commit 4bd6bdf
Philipp Schärer
Relationship deletion
Allow the deletion of relationships using the `relationships` values of a request, eg:
{
"data": {
"id": 1,
"type": "model",
"attributes": {
"name": "test-model",
"number": 1
},
"relationships": {
"other-model": {"data": null}
}
}
}
See http://jsonapi.org/format/#crud-updating-to-one-relationships1 parent ce945f2 commit 4bd6bdf
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments