REST stands for REpresentational State Transfer.

learn more… | top users | synonyms

0
votes
1answer
26 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
20 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
40 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
19 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 = ...
0
votes
2answers
56 views

Drupal & Services (REST): how to session authentication

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
43 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
63 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
54 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
44 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
36 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
62 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
45 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
114 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
124 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
41 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
54 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
47 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
41 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
252 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
134 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
52 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
44 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
61 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
68 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
238 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
120 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
196 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
87 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
83 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
599 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
38 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
110 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
203 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
57 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 ...
3
votes
2answers
1k 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
14 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 ...
0
votes
1answer
226 views

How to Post JSON data to Cart service in Drupal Commerce Services

I'm uses Drupal commerce services for mobile commerce. But I don't know how to Post jSON to REST service Cart or Order. With Comment services I"m post JSON successful as below: URL: ...
0
votes
0answers
379 views

Update user custom fields with cURL and rest services in Drupal 7

I'm working on a site which is based on Drupal 7 and I'm stuck on a updating user profiles with a custom user/account. What actually I'm trying to do? I have used this script to made custom ...
0
votes
1answer
169 views

Integrate external DB users via their API in Drupal 7

I want to integrate an external API (REST) to login users which are on that external database using the drupal 7 login form on my site. I have the API specifications for Login, Registering, Getting ...
0
votes
0answers
102 views

Drupal Services Rest API login very slow

I am using the services module with the rest server to allow for user login from external services. While the script seems to work, it is taking around 2 seconds to authenticate the user. Is there ...
0
votes
2answers
106 views

Which parameter do I need to pass for user registration of Drupal service

I have first name, lastname, email, password, confirmed password and gender for user registration like facebook registration when I call the url using poster ...
0
votes
1answer
492 views

Getting “Access denied for user anonymous” when calling a CRUD function

I configured a REST service with the Services module and created a custom service with the CRUD + index functions. If I call the index function like so localhost/drupal/blog/note, it gives me the ...
0
votes
1answer
172 views

How to attach/upload a file to node using restws?

I've got a content type with "File" field and "File" widget. I am successfully able to create a node without a file using restws. But, if I want to attach a file to it, it just doesn't allow me to do ...
2
votes
3answers
2k views

Login with a REST service (services module)

I work with Drupal 7 (services 3.x) to implement a REST service. When I test a login request with this script: $service_url = 'https://dev.mysite.org/api/blog/user/login.xml'; // .xml asks for xml ...
5
votes
2answers
948 views

How to create user with role(s) through REST service (Drupal 7)

I could able to create a new user by the following JSON format.(Using POSTER add-on to post this data to REST service.) { "name":"user34", "pass":"3323", "mail":"sample@example.com", ...
0
votes
0answers
936 views

Attach file to post using C# RestSharp and Drupal Services

I'm writing a C# app that posts to Drupal using Rest calls to the Services module, I can connect and create new nodes easily but I cannot figure out how to attach files to the nodes. Using the ...