developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
131
results
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
•
For an introduction to setting up RESTful hal+json refer to the set-up...
Andrew Fletcher
•
The user API, was originally created under the General Documenation area (see Query - user). I'm creating a new user API document under the API documentation area.
Calling a query
To call a user query the details are required:
User uid;
Authentication credentials
The query string is: {domain}/user/{uid}?_format=hal_json
See the notes on set up, for the staging and production URLs. Using the current staging URL in the set up screen, as example of...
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
•
In this woalk through I am going to use GitHub. However, the steps are...
Andrew Fletcher
•
Do you want to know how to add a node alias in a twig file? Rather than do...
Andrew Fletcher
•
In terminal I ran a regular command - compose update. Something I've completed thousands of times previously. However, this time I received the following response:
env: php: No such file or directory
What gives?
Well, thinking through what had recently changed... The only major change was upgrading OSX to Monterey. So a little of Googling and found yep this could be the cause. PHP has been removed from MacOS since v12 (Monterey), so you first need to...
Andrew Fletcher
•
Currently I'm working through an app that has been abandoned by the developers....
Andrew Fletcher
•
First off, this isn't the only method to achieve the outcome of emptying a...
Andrew Fletcher
•
Changes in your .env file
Connecting your app to the new environment you need to...
Andrew Fletcher
•
Clear DNS Cache
The DNS (Domain Name Service) cache on your Mac helps browsers...