Skip to main content
36
results
Andrew Fletcher
Update Ubuntu 20.04 To begin update the server using the command sudo apt update && sudo apt upgrade -yFor more details about this process see How To Update All Packages Linux.   PHP version Check the current PHP version using php -vThe response I had was PHP 7.4.3 (cli) (built: Nov 2 2022 09:53:44) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies  Install...
Andrew Fletcher
Installing PHP on OSX and it installed PHP 8.2.x.  However, for my...
Andrew Fletcher
  JSON structure Outlining the structure of the elements common attributes:...
Andrew Fletcher
In this instance, I'll check the beginning of the string.  I want to focus...
Andrew Fletcher
  Using the Drupal Poll module and passing via RESTful API -  How do...
Andrew Fletcher
This code is from Drupal 9 back-end for a React front-end via REST API. Working through the output for recently viewed pages... the code structure: <?php namespace Drupal\custom\Plugin\GetData\paragraph; use Drupal\custom\Plugin\GetData\ContentBase; use Drupal\custom\Plugin\GetData\ParagraphTrait; use Drupal\node\Entity\Node; /** * Provides Recent view pages data. * * @GetData( * id = "recent_view_pages", * title = @Translation("Recent view pages Data"), * ) */ class...
Andrew Fletcher
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
How to use the Drupal REST API to trigger I've forgot (need to change) my...
Andrew Fletcher
Working from the bases that .DS_Store has not been added to your git repository,...
Andrew Fletcher
To get the X-CSRF token, first, you need to login as a member.  Follow the...
Andrew Fletcher
In retrieving an image, the primary element required is: File id or fid;   Query string Using the element outlined above the query string becomes: {domain}/file/{fid}/?_format=hal_json Replacing the following variables: {domain} ~ your-site.com {fid} ~ 3214 Becomes: your-site.com/file/3214?_format=hal_jsonGenerates the following output: { "_links": { "self": { "href": "https://your-site.com/file/3214?_format=hal_json" }, ...
Andrew Fletcher
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
For an introduction into setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
To POST an image is similar to the other posts mentioned on this site....