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
159
results
Andrew Fletcher
•
For an introduction into setting up RESTful hal+json refer to the set-up documentation. Also see the Query - user screen.
Login a member
POST: {domain}/user/login?_format=hal_json
Content-type: application/hal_json
Accept: application/hal+json
{
"name": "username",
"pass": "password"
}Example:
{
"name": "jacque",
"pass": "nOtmYp1ssWorD"
}Example response
{
"current_user": {
"uid": "200",
"name": "jacque"
},
"csrf_token":...
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...
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...