I'm trying to create a new node through REST on Drupal 8 with no success and a 403 (Forbidden) error. I'm using REST UI module to enable permissions with the following config for Content resources:
GET authentication: basic_auth formats: hal_json, json
POST authentication: basic_auth formats: hal_json, json
After many failed tries I installed a fresh copy of Drupal 8.2.3 to discard it had to be with the recent core upgrade on my original site. The big surprise is on the fresh site there are no other RESTful module permissions than Administer REST resource configuration, no permissions to grant DELETE, GET, PATCH or POST to each role.
I'm using Postman for testing purposes as follows:
Request body:
{
"_links": {
"type": {
"href": "http://fischer.dev:81/rest/type/node/article"
}
},
"title": [
{
"value":"My article"
}
],
"type": [
{
"target_id":"article"
}
]
}
User role is granted permissions to create Article nodes. I tried even with the admin credentials with no success. The GET method for retrieving an existing node is woking fine.
I don't know if there was any change on the latest Drupal release since the official documentation page for this module appears to be outdated. Am I missing something?