REST stands for REpresentational State Transfer.

learn more… | top users | synonyms

0
votes
0answers
15 views

Using EmberJS as a FrontEnd to Drupal

I am just starting to learn more and more about Headless Drupal, and have developed an interest in combining it with an MVC framework like EmberJS. I've only found one good talk on the subject, but ...
0
votes
0answers
24 views

Drupal 8 User Registration with REST

How do you register a user account via REST in Drupal 8? Here's how far I've made it (not sure if this is the right direction though): I've enabled the Form mode resource under ...
0
votes
0answers
10 views

How to insert multi image with restFul service on D7

i have a little issue i try to add to my node with RESTful service on drupal 7 multiple fid for a image gallery and i can't finish the process, i try 'field_gallery[und][0][]' => array( ...
1
vote
1answer
18 views

Associating comments with special pages/module output

I have what one could consider an "irregularity" in a Drupal module. I have this unique case (mostly due to vendor inconsistencies and ever-changing requirements) where when a user requests a certain ...
0
votes
1answer
26 views

How to retrieve specified fields using services?

Using services we can retrieve list of all nodes with different filters and we can get a specific node as well. But is there any way we can specify the fields we would like to retrieve ? Eg: ...
0
votes
1answer
61 views

RESTws POST List (text) field type Error

I'm using RESTws and POSTing a JSON object to "/node". Everything works fine until I include a List text field (checkbox type). The field in question is: ... "field_days_closed_v": ["Monday", ...
1
vote
0answers
25 views

Making a 'contains' type GET query over a REST API, with Services?

I've installed Services (and Services Views) so I can expose my drupal site as a RESTful API. All my filters are working, but not the one that queries a taxonomy term array. Here is an example JSO: ...
0
votes
0answers
18 views

Profile data not showing using REST server

When visiting user profile page /user/1 the page shows the custom profile data (bio, and a few other fields), but when accessing the same resource via rest (using web services), the data isn't ...
0
votes
1answer
20 views

Auto-complete and form auto-populate from wikipedia

I have some taxonomy terms that would benefit from being (at least in part) being based on wikipedia articles. It looks possible to make a request via the wikipedia api in PHP, and then link that to ...
1
vote
1answer
35 views

how to debug drupal_http_request

I'm working on a module that takes a form submission and posts it to a rest api, using the webform validator module's hooks. I'm trying to debug what's going wrong, and I have the following code, ...
0
votes
1answer
28 views

write data in another drupal website / rest

I need to implement the following setup: - master site (drupal 7) - child site (drupal 7) User create/update nodes in the master site. Then the nodes should be copied to some child sites, depending ...
1
vote
1answer
37 views

How to extend/override Rest EntityResource Plugin in Drupal 8

I would like to extend/override the Rest EntityResource Plugin in Drupal 8. I have read everything I can find online and I can see how to create a resource plugin for something other than an Entity ...
2
votes
1answer
45 views

Web services for specific node

I know you can enable Web services for content in Drupal8. You also need to set permissions to make a GET request to content. But I was wondering if it's possible to set for each node if it can be ...
0
votes
0answers
25 views

REST login rejected with valid credentials

I can get a valid response from the server with the following url http://example.com/mysite/my_path/my_alias/retrieve?api-key=my_key the following code returns a 401 $base_url = ...
-1
votes
2answers
217 views

Drupal & Services (REST): how to session authentication [closed]

I have Drupal 7 and Services 3.10 and I want to use Session Authentication. So i have, in my services resource, checked the "login" action for the user resource. Now calling the "base_url" + ...
0
votes
0answers
17 views

Name space in rest service

I'm using the Services module for rest services. Is it possible to add my custom namespace in rest XML output.
-2
votes
1answer
86 views

Creating Custom Weather Module in Drupal 7 [closed]

I'm a beginner at Drupal 7 trying to create a custom module that gets the weather from weather.yahoo.com for my own personal use. I'm not trying to make anything fancy like the Weather module. I just ...
1
vote
1answer
104 views

How to populate an autocomplete using a web service?

I want to populate a form field, an autocomplete widget, with values from an external REST web service without actually importing the data to my database first (on-the-fly). How do I do that? Is ...
0
votes
1answer
116 views

Restws authentication

how can i login to my drupal in api way and use the rest ws module with api calls for example i have user with name test i want to login with test user then use api calls with something like ...
1
vote
1answer
54 views

POST taxonomy item using Services module

I want to POST a new taxonomy item. I'm using Postman in Chrome to test, I'm logged in fine, and I'm posting RAW JSON: { "name": "building", "description": "", "vocabulary" : { "id" : 1, ...
0
votes
1answer
61 views

Restful between Drupal 7 and Androi app - Create node problem

I use restful between Drupal 7 and Android app. I logged in successful and got 3 variable session_id, session_name and token When I use POST method to create node. I getting error : "node type is ...
-1
votes
1answer
122 views

How to deal with SalesforceException: HTTP Method 'PATCH' not allowed [closed]

I've the the Salesforce module mapping in place integrated with Commerce module and I've the following SalesforceException when purchasing the order: SalesforceException: HTTP Method 'PATCH' not ...
0
votes
0answers
73 views

Drupal 7 Services REST - DELETE Request

I'm trying to delete user account via REST api. Here is my code: $service_url = 'http://www.example.com/rest/user/login'; // .xml asks for xml data in response $post_data = array( ...
0
votes
2answers
172 views

Consuming RESTful web services with Drupal 8

Is there any existing Drupal 8 module (on drupal.org, GitHub or anywhere else) that would leverage Guzzle to consume JSON and/or HAL+JSON Web Services over REST? Alternatively, is the recommended way ...
1
vote
2answers
137 views

Import a custom field type record and relate it to a node

I've created a module for a custom field type which selects images from cloudinary. Is there a way to dynamically add entries as part of an import script? I've tried updating the database directly, ...
0
votes
1answer
47 views

third party data source. best way to do

I am trying to display some TV schedule information from a thirdparty json api. I need to know what is the best way to do this. I have tried various module wsclient module,json query plugin, wsclient ...
0
votes
0answers
77 views

Using RESTful web services to get module data

I've created a custom module that we use to access images from cloudinary. When I view content that has this module, in json format for example, the fields are not being returned. I can get it to ...
0
votes
1answer
26 views

How to automate setting up Services or RESTws?

It looks like xmlrpc.php is of almost no use. I want to use XML-RPC to control my sites but I don't want to set up Services or RESTws manually on dozens of sites. It doesn't look like Services has ...
0
votes
0answers
87 views

Authentication REST

I'm make an Rest module, when I start config, I found this problem, I dont know what I'm missing. How to enable authentication ?? **Authentication** No authentication modules are enabled, all ...
0
votes
0answers
60 views

RESTful web services 500 or 406 Error when “£” is in a value

I'm using RESTful web services and Node.js to export a Mongo database into Drupal. This is working fine, however I get the occasional 500 or 406 error. I've narrowed it down to a "£" sign. In node I'm ...
0
votes
1answer
392 views

404 Not found: Could not find the controller in poster

I am getting issue while using the Services module. I created an endpoint with the path 'api' and a custom module with following code. In resource_two.info file I have written name = resource_two ...
1
vote
4answers
209 views

drupal as mobile app backend

Im currently using drupal 7 + commerce for online sales and I have a phonegap app that creates orders. I want to use drupal 7 via a the services module to sync the app sales data with the online ...
0
votes
0answers
66 views

Login error for a XMLRPC REST service

I am implementing a REST XML Service (7.x-3.7) with a Drupal 7.x. I enable a service for logging and logging out process: Resources: I am testing the service with this code: /* login */ ...
0
votes
0answers
81 views

Unable to get the json or xml format of views using views services

I have enabled the following modules 1. Services and it dependencies like Rest 2. Views Services I have added an endpoint at /admin/structure/services/list as follows : Then went to view and added ...
0
votes
2answers
76 views

How to create Taxonomy Term using Services?

I've a vocabulary called Tags. I need to create Taxonomy terms under this vocabulary using REST service. So What is the JSON format to create taxonomy term. Similarly what is the JSON format to ...
0
votes
2answers
106 views

Issue with attaching an existing file while creating node using RESTWS

I am trying to create a new node using the restws drupal module. My content type has just two fields: title and a file. However, when i send the request with following payload, i get an error. The ...
0
votes
1answer
311 views

User created by REST API cannot login: wrong password

I am creating new users using Rest API provided by Services module. The user creation goes well, but when I try to login with the user I've just created it says wrong password. The website where I'm ...
0
votes
0answers
162 views

Adding node with multi value field using Services

While adding node using REST API, submitting multi-value field is adding only one value to that field. { "title":"test", "type":"article", "body":{"und":[{"value":"this is main body"}]}, ...
1
vote
1answer
275 views

How to send files to Drupal 8 via REST

I can create articles via REST without problems. But I can not figure out how to submit files. How do I submit files (images) to Drupal 8 via REST? Update: Rest UI - File: /file/{id} Example ...
2
votes
1answer
101 views

Drupal services REST API and special characters

I'm using REST Services to communicate between two websites. Once a node is updated on the website 1, part of the information is sent to the website 2. This works without any problems. However, all ...
0
votes
1answer
96 views

Can't get the authenticated user cookie session to be used when creating a new node via Services 3 endpoint

My application is sending this header to Service 3 endpoint when creating a new node: { 'Cookie': 'SESS255f42d9a87a0df5bf8959d25909fe8c=St8o29NI9Hx84kPo8NuZbpdHWuRgNSS9qy9cQ-QM4rA; expires=Sun, ...
0
votes
2answers
865 views

Drupal Rest services “access denied user anonymous”

I have created a custom service where I am passing parameters and retrieving result from another file. So to test it I tried on Postman and I put URL with sitename/endpoint/resource and passed ...
0
votes
0answers
56 views

Drupal Content API: show actual values of field collections

I am currently a maintaining a system, and I'm trying to figure out how to expose certain fields using Content API. I have already setup the Content API module, and is successfully returning thru ...
0
votes
0answers
111 views

Commerce services error when adding custom field

If i add any custom field to a commerce order my services API works as expected and returns the details of all orders, however when I add a custom field supplied by the signature field module ...
0
votes
0answers
24 views

How do you complete the REST calls?

I'm trying to pull some data from one site to another, both drupal. I created a json response on the source site with views datasource. I saw that web services client is supposed to be a way to ...
0
votes
2answers
312 views

Services Entity REST Application - Update (via put) Field Collection Data

I am trying to figure out what the format and required parameters are for an update request to a field collection via the Services Module's REST API. I have installed the Services Entity API Module to ...
0
votes
0answers
21 views

Services Module - expose summary and other fields?

I have set up a rest service that allows me to fetch nodes by content type: http://example.com/rest/node?parameters[type]=publication Is it possible to have this service output all of the fields ...
0
votes
1answer
61 views

What's the data structure that needed by services for posting new node with drupal7 services?

I have content type named "shen" and gona to create new node with services module from crawl machine data. For now, it can login in system and post new node but it can't save image field data. this ...
4
votes
2answers
2k views

How to use Drupal 7 Services Basic Authentication?

How to use Services Basic Authentication module? I want to add http basic auth for my service. I have installed it and enabled it on my end point configuration. I got this "HTTP basic authentication ...
0
votes
0answers
15 views

How to setup permissions with Domain Access to be able to query nodes with RESTfull Web Services?

I have a website with Domain Access, and RESTfull Web Services modules. Content is assigned to different domains. Let's say I have a role: "myrole" . How to give this role ability to use RESTWS ...