Since we need to send relationships aside with records, in order to update them, we need to transform their plain form representation, i.e.:
{ "id": 100, "organization": { "id": 10 } }
To a JSON API compliant JSON, which requires all the related resources
to be define in a relationship fields. Jsona may helps us here, but
we need to convert the values, adding the type (based on Model) and
registering them in the relationshipNames[] property.
Current model
Model record
Generated using TypeDoc
Api request & response transformed based on the
Jsonalibrary.