There is no problem with a node creation with filled in title/body/custom text field fields using REST API. We just need to send a post request with the following body:
{
"_links": {
"type": {
"href": "http://localhost/drupal/rest/type/node/page"
}
},
"title": {"value": "Does it work?"},
"body": {"value": "node body"},
"field_test": {"value":"hello"}
}
Where "field_test" is a plant text field.
But how to create a node with filled in tags field?
I've tried to post a node using the following post request body:
{
"_links": {
"type": {
"href": "http://localhost/drupal/rest/type/node/page"
}
},
"title": {"value": "Does it work?"},
"body": {"value": "node body"},
"field_tags": {"value":"tag1"}
}
It creates the node, but without tags ("field_tabgs") value. Any help?