Voting starts in March for the Drupal Association Board election.
I'm trying to post a login json so I can create/update nodes. I don't require any advanced authentication. I just testing the concept.
My understanding is:
1) That I need to use the restws_auth_basic module. Is that true or could I just send the user/password json to the drupal site url?
2) I'm using the restws_auth_basic module. I keep getting a 403 failure; and, I cant't figure out the json requirements. I get the same results in PHP and using the HttpRequester FF plugin. I have done the following as per instructions:
a) I enabled the restws_auth_basic module and set the settings.php to
$conf['restws_basic_auth_user_regex'] = '/^webrstest.*/';
I have written no hook functions nor do I require any (I'm just accessing posted articles).
b) I created the restwstest account with a password of 'test' and gave permissions to the restws and node functions I was using.
c) My login json is:
d) Content type is application/json
What am I doing wrong? Additionally, is there anywhere I can go to GET examples? For instance, to update a node I do a get and alter one of the fields and then a PUT back the entire node. Is that true with restws?