Open joelalejandro opened 1 year ago
The following request causes Kurier to fail:
// PATCH /comments/2/relationships/parentComment HTTP/1.1 // Content-Type: application/vnd.api+json // Accept: application/vnd.api+json { "data": null }
Due to data being null. The update method expects data.attributes to be defined.
data
null
update
data.attributes
Also, the op contains no data referencing the parent relationship:
op
{ op: 'update', params: {}, ref: { type: 'comment', id: 3 }, data: null }
PATCH should be able to replace or delete the relationship.
PATCH
The following request causes Kurier to fail:
Due to
data
beingnull
. Theupdate
method expectsdata.attributes
to be defined.Also, the
op
contains no data referencing the parent relationship:PATCH
should be able to replace or delete the relationship.