REST stands for REpresentational State Transfer.

learn more… | top users | synonyms

1
vote
1answer
39 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
12 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 ...
-2
votes
0answers
25 views

How to update a node using the service 3 api

I'm unable to update a page using the REST API. I'm using GET, POST, etc. but PUT and PATCH do not seem to work. Any suggestions would be appreciated.
0
votes
1answer
42 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
32 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
17 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
43 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
1answer
40 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
76 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
0answers
57 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 ...
1
vote
2answers
232 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 ...
1
vote
1answer
153 views

How to create user with role 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","status":"1"} My ...
0
votes
0answers
194 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 ...
1
vote
1answer
90 views

Drupal Rest Service - Create node problem [duplicate]

I'm using POSTER add-on (Firefox) to create a node.(REST service). I couldn't able to create node having select/checkbox item. Getting following error in response. ["An illegal choice has been ...
1
vote
1answer
48 views

How to GET REST resources for Views

Getting a node via Drupal 8's RESTful web service can be done by doing a GET with this url: /entity/node/1 How then, do you access a View? I've tried the following, with no luck: ...
0
votes
1answer
110 views

How to properly recognize a session id generated by drupal?

I'm storing stuff in a session that is sometimes handled by drupal. The session id is passed forward to another service, which checks back to the original server to get the session data. When the ...
1
vote
1answer
54 views

How to perform a REST request after a node created using rules?

I have a backend service written by Python, which is exposed a JSON api. And I want drupal to perform an HTTP POST/PUT/PATCH/DELETE... request with json data (which is an output of a node) to the ...
1
vote
0answers
86 views

Create Node contains Field collection with restws + services

I am trying to create a node with RESTFULL api using restws and services modules (latest versions) on Druapl 7 - openpublish destro. the node contains a Field collection (images field collection ...
-1
votes
1answer
113 views

How to display JSON returned (from external REST API) in a Block? [my code attempt inside]

I am trying to display the data from a REST API (URL: 'http://api.kivaws.org/v1/loans/38239/lenders.json') to display in a block. Below is my code. It is not working, any hint on why will be sincerely ...
1
vote
1answer
803 views

Problems with Services and CSRF token

I've been trying to create a user via webservice without doing any custom coding or curl. This post got me 75% there: How to create test_endpoint I finally got it working, but only by passing in my ...
0
votes
0answers
78 views

Uploading File Using RestWs

I am trying to upload a file using the RestWs module. However I'm completely stumped on how to send the file. I can encode the file correctly, but any attempts to send it give me the error : 406 Not ...
1
vote
1answer
577 views

Non-CRUD resource action with Drupal 7 / Services 3

I can't get this simple example working with a custom action. I had to move it form here How can I create a simple non-CRUD resource action with Drupal 7 / Services 3? to an own question. The ...
1
vote
3answers
696 views

How to configure REST server to create new node from URL parameters?

Drupal 7.23 Services 7.x-3.5 I've followed the instructions for setting up Services module, including https://drupal.org/node/1699354. I got the endpoint setup successfully. I am able to retrieve ...
0
votes
0answers
18 views

How to use use REST APIs in Drupal? [duplicate]

I will present the problem as an example: If I want to use the twitter API: https://dev.twitter.com/docs/api/1.1/get/statuses/mentions_timeline In the link above, under "Example Request", it shows ...
0
votes
1answer
391 views

Passing custom fields as parameters in a REST query

I am creating a REST Get request using Services 3.3 module on Drupal 7.15 which should get all the nodes filtered by a custom field field_asset_type ...
0
votes
1answer
75 views

How can I implement a RESTful API in Drupal?

Can any one please let me know what modules are available to implement a REST API? So far I've only found the Redmine REST API module, which is used for Redmine.
0
votes
1answer
256 views

Drupal 7.13 and Services 3.5 XML Payload schema to Update Node?

I have finally got Services up and running and setup an endpoint to nodes but can't work out how to update custom fields from a POST or PUT. Been trawling through the docs, examples, and tutorials ...
0
votes
1answer
179 views

Setting Drupal's Cookie Session ID from a REST Service. Is it possible?

I have overridden Drupal's login process by calling a REST API which returns a 'true' or a 'false' depending on whether the login was successful or not. Once successful, I'm logging the user in by ...
0
votes
0answers
31 views

Include children of a node in RESTful json

How can I serve children of a node in a single json with RESTful? Here is what I'm getting: (...) ...a bunch of properties... (...) u'field_mychild': [{u'id': u'69', ...
0
votes
0answers
48 views

Rest request for new Nodes

I am currently developing an android App using Drupal (via Rest-Services) as my Backend. I would like to be able to ask the Serverside if there is a new Node available to load into my local cache ...
2
votes
0answers
227 views

how to send and recieve privatemsg with services (REST) in drupal 7

Im using Services with drupal 7 and I built a rest service with it, I also included the private message module and the entity module. I can see under the my service a resource called ...
0
votes
1answer
373 views

How do I PUT update on a node using services 3

I have a node with field_order_status field(not required) in list(text) type and radio button widget and I want to update a node(nid:95) but my sample JSON PUT content(application/json) throws Status ...
0
votes
0answers
312 views

How do I create a node with Services 3.4, REST, and JSON? [404 Error arises]

I've seen other posts about this, but none that are having the same problem as I am. I understand that recent updates require the header to contain the session info and token and have updated my code ...
1
vote
1answer
386 views

Drupal 7 Services REST 403

I'm trying to setup a REST server to allow login from external apps. I managed to get the sequence working using the Poster plugin in Firefox but can't seem to replicate using a small perl script. I ...
0
votes
1answer
60 views

REST request through Actions and Triggers

In Drupal, I can define a Advanced Action in Administration>Actions , but the available options does not have a Send REST request option, how do I achieve what I want? In my case, I want my remote ...
3
votes
1answer
915 views

What is the use of has_js cookie?

I am building an Android app that talks to Services module using REST endpoint. When I post any content without setting the "has_js=1" cookie to the REST endpoint in JSON format, my content is never ...
3
votes
1answer
833 views

Services - Creating a node with php curl client returns 401 error - X-CSRF token always empty

A recent update to Services and Drupal requires a csrf token, and it broke the php curl client samples. I am trying the sample code for Services to create a node here ...
1
vote
0answers
89 views

How to use services with Drupal 6 on server that does not support CORS

I am using Drupal 6 for my current website. I have confirmed that the server(Pantheon) running my Drupal 6 website on nginx does not support CORS as of now. I want to interact with this site using ...
2
votes
1answer
304 views

REST Service - 500 Internal Server Error

I has been trying to set up a drupal REST Server in my computer (a clean drupal 6 installation). Unfortunately, I could not configure it.... When I send a POST message (WITHOUT parameters) ...
1
vote
1answer
268 views

how to enable CORS in Drupal 6?

I want to use services 3 module to create node of a content type in my Drupal 6 website. I have enabled Services 3 module and configured the Rest Server properly. But when I make a post call to it, ...
0
votes
0answers
193 views

Rest call with GET or POST call to drupal 6 gets converted to call with method OPTIONS and the calls fail

I am working on a Drupal 6 website. I want to use Services module on nit to create node of particular content type from a Sencha app making a Rest call with POST method. I took following steps: ...
1
vote
1answer
116 views

unable to get custom service to return result using services module

I'm learning about web services and implementing it in drupal 6 and am trying to use Services module with its REST server for implementing a web service to add a user. Since there is an existing ...
0
votes
0answers
211 views

Drupal Services Returning “Missing Schema”

I have a website with a production and staging server set up (mysite.com and staging.mysite.com). At the moment they are both running the exact same code. Over at another application, I post to ...
1
vote
0answers
75 views

customizing user module output drupal 7

I am using Drupal 7 to develop a REST API to create an iPhone app. The basic feature for this app user login and logout process. I am using the User module. The authentication process involved is ...
0
votes
1answer
1k views

How to create restful api for drupal site? [closed]

I am beginner of creating rest api in drupal, can anyone tell how to create rest api for drupal? as a step by step process. My question is, i am having one drupal cms website for that one, i want to ...
2
votes
1answer
668 views

Services Module - Access Denied for User Admin

I'm trying to get a REST server going with Services, testing locally. It seems like things are running, but I'm denied from using any of the resources, even as an admin! I'm trying to follow the ...
0
votes
3answers
49 views

Allow public to edit content type

I have a content type that users can vote on so I need that content type to keep tally of the votes. I'm assuming I need to allow the public to edit that content type but, unsure how to go about ...
2
votes
2answers
403 views

REST won't work

On a Drupal6 installation I have the REST service enabled (6.x-3.3). All seems to setup correctly, but I cannot query any data and get always 404 Not Found. What is the correct URL for retieve node ...
0
votes
1answer
581 views

How to attach and add files to nodes using Drupal restws module?

I need to add files to multiple value file field using drupal rest api (restws module). return format of restws is something like this : "field_files": [ { "file": { "uri": ...
2
votes
0answers
35 views

Drupal Services returns javascript after results

I am using Services Views and have a view that returns the json array, plus a script tag (the default jQuery.extend(Drupal obj...). I do not want this jQuery.extend script to be added for a services ...