Skip to main content
148
results
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
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...
Andrew Fletcher
For an introduction into setting up RESTful hal+json refer to the set-up documentation. GET a node To get the content of the specific node you require the node.nid.  The key information required in the GET query: URL - your-site.com/node/<nid>?_format=hal_json; Content-Type - application/hal+json; Nod.nid - noted in the URL string as <nid>. Example using a node.nid of one (1).  So the nid in the URL is <nid> =...
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....
Andrew Fletcher
To sort through a multidimensional array seems to be a function that I...
Andrew Fletcher
For an introduction to setting up RESTful hal+json refer to the set-up documentation.  This article is about retrieving vocabulary lists that are used in many of the requests such as: Challenges: Activate type {activate_time); Distance marker {distance_marker}; Status {challenge_status} Notifications: Audience {notification_audience}; Status {notification_status}; Type {notification_types} Rivals: Status {notification_types} The notation above is indicated as vocabulary...
Andrew Fletcher
The user API, was originally created under the General...
Andrew Fletcher
The development version of the app database is held on the staging site....
Andrew Fletcher
The user parameters provides details about a specific user based...
Andrew Fletcher
Adding git tag to your actions. The regular process that I work to is git add...