Hi,
I could not find documentation on how to POST to an entity reference field which references another content.
There seem to be only samples for POSTing to taxonomy terms or comments:
https://www.drupal.org/docs/8/core/modules/rest/javascript-and-drupal-8-...
No mentioning of differences or similarities for entity references.
Could you please provide me with a sample, which shows how to POST (hal+json) to an e.g. Article which has an entity reference field to a page?
Thanks
Comments
Comment #2
maxilein CreditAttribution: maxilein commentedFinally I found an explanation:
http://kristiankaa.dk/article/headless-drupal-8
Comment #3
maxilein CreditAttribution: maxilein commentedHere is the very simple solution that works for me:
Comment #4
maxilein CreditAttribution: maxilein commentedI added this to the documentation ...
Comment #5
maxilein CreditAttribution: maxilein commentedComment #6
Wim LeersComment #7
Wim LeersComment #9
borisson_I don't understand why this issue is at Needs review.
Comment #16
SpokjeThe
hal
module has moved out of Drupal Core and into a Contrib Module.Moving this issue to the Contrib Module queue.
Comment #17
larowlan