In a case of /posts/1/comments and a payload
{data: {type: 'comments', attributes: { content: 'Some comment'}}}
I would like to be able to add the relationship to posts without the client having to specify the relationship in the payload. I really hope this is compliant with the spec.
How would I implement this in json_api compliable? jsonapi_create does not take any params, but it would be helpful if it did.
In a case of
/posts/1/commentsand a payloadI would like to be able to add the relationship to
postswithout the client having to specify the relationship in the payload. I really hope this is compliant with the spec.How would I implement this in json_api compliable?
jsonapi_createdoes not take any params, but it would be helpful if it did.