Skip to main content
298
results
Andrew Fletcher
09 Jun 2022
  Using the Drupal Poll module and passing via RESTful API -  How do you get it working?   The initial set-up POST: {domain}/mhc_custom/poll?_format=json Content-type: application/json Accept: application/json { "choice": "1" }   If you run the above credentials, you will find the following response { "message": "The 'restful post mhc_custom_poll_submit' permission is required." }   Let's have a look at the backend path: Admin > Configuration > Web services >...
Andrew Fletcher
09 Jun 2022
This code is from Drupal 9 back-end for a React front-end via REST API. Working...
Andrew Fletcher
07 Jun 2022
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
30 May 2022
How to use the Drupal REST API to trigger I've forgot (need to change) my...
Andrew Fletcher
29 May 2022
Working from the bases that .DS_Store has not been added to your git repository,...
Andrew Fletcher
24 May 2022
How do you generate a .pem file from an existing .ppk key? Is putty on your mac? Check by running the command puttygen -V Which will generate a response similar to  puttygen: Release 0.76 Build platform: 64-bit Unix Compiler: clang 12.0.5 (clang-1205.0.22.9) Source commit: 1fd7baa7344bb.... Don't have Putty, well easily fixed with homebrew. brew install putty   Generate the key We will use puttygen to generate the key. puttygen key.ppk -O private-openssh -o key.pem key.ppk the...
Andrew Fletcher
19 May 2022
To get the X-CSRF token, first, you need to login as a member.  Follow the steps...
Andrew Fletcher
19 May 2022
In retrieving an image, the primary element required is: File id or...
Andrew Fletcher
19 May 2022
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
19 May 2022
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
18 May 2022
To PATCH a user is to update an existing user... actually the current user logged in. An introduction to PATCH command can be viewed on the Node PATCH command screen.  Secondly, review the user API, as it outlines the structure for each of the fields that can be included.  Finally, if you haven't already reviewed the introduction into setting up RESTful hal+json refer to the set-up documentation.  Also see the Query - user screen.  To be able to get, patch or patch you need to log in the member...
Andrew Fletcher
18 May 2022
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
18 May 2022
To POST an image is similar to the other posts mentioned on this site.  This...
Andrew Fletcher
18 May 2022
To sort through a multidimensional array seems to be a function that I...
Andrew Fletcher
18 May 2022
For an introduction to setting up RESTful hal+json refer to the set-up...