REST stands for REpresentational State Transfer.

learn more… | top users | synonyms

1
vote
1answer
20 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
15 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: ...
0
votes
1answer
24 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
23 views

REST Login Problem [migrated]

I am trying to login to my Drupal website through android app and when i give URL as the end point to access and pass the username and password then my code gets stuck in making the post connection. I ...
0
votes
0answers
32 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
46 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
120 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 ...
0
votes
1answer
76 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
32 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
104 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
157 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
24 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 ...
1
vote
1answer
180 views

POST request trying to make a Session authentication in the REST SERVER return a HTML error 406 Not acceptable

I have a REST server in drupal working. I get data if I go to the server endpoint. In Navigator: http://localhost/drupal-7.19/restserver/user/ Work fine. I have created a PHP to make the ...
0
votes
1answer
40 views

Where place spyc library dependencies

I have a issue trying to activate REST SERVER from services. I need to add this library. I'm using drupal 7.19 on Ubuntu. Reading this question, I add the spyc.php in 'servers/rest_server/lib/' But ...
0
votes
0answers
97 views

using facebook oauth with Rest Server

I'm building an Android app that communicates with Drupal Services 3 through Rest Server module. On Drupal side, I'm using Facebook oAuth module for authentication. so I want to let the app users ...
2
votes
0answers
49 views

Retrieve site menus using REST API

I have a site where menus are created using Site building -> Menus -> List menus -> Primary links -> Add item option. Some of them have sub-menus under them. I want to retrieve these menus ...
0
votes
1answer
19 views

Where to check for node value constraints on services data receive

I have a REST service to create nodes. On data receive node.create is executed, but before actually creating the node I need to check some constraints like node type and other node values. Where do ...
0
votes
0answers
54 views

Consume EWS via REST

I'm trying to update User information from an Outlook Exchange Server 2010 - Exchange Web Services. After figuring out that it's a REST service, and looking into the SERVICES_CLIENT module... I'm not ...
3
votes
0answers
107 views

Using oauth_common in a module to authenticate with a web service?

I'm wanting to use my Drupal 7 site to communicate with an external API that must be authenticated via 3-legged OAuth. It seems there's a lot of documentation around about using Drupal as the OAuth ...
0
votes
0answers
35 views

Services REST: Revert a node to an older revision?

Does the Services REST server support reverting a node to an earlier version? I skimmed through the documentation and the code and googled a little, but could not find anything, except for this ...
2
votes
0answers
477 views

Services module. How to construct the JSON data with session info for creating node?

Drupal 7 + Services 3.2 I am using Postman for Chrome (a http client) to test the API. What I want to do is login a user then create a node with the user by using the Drupal service API. Below ...
1
vote
1answer
267 views

Services module. How to register an user with the API?

Drupal 7.17 / Services 3.2 My setup: I follow the doc: http://drupal.org/node/1447020 With FireFox HttpRequester, tried to register a new user: Then I got 500 Internal error: Any ideas? ...
2
votes
1answer
146 views

Services module: What is 'Index' operation?

D7 / Services 3.2 retrieve / create / update / delete are very straightforward, make senses to me that matching 'CRUD', I don't understand what 'index' here does? Thanks.
4
votes
0answers
179 views

Drupal Services OAuth

I have been working on this issue for a couple weeks now, and I can't find a solution for the life of me. The fact that I have found no decent documentation (on Drupal's website, or anywhere else) is ...
2
votes
1answer
328 views

Getting the entire index of nodes from REST API

I'm looking for a way to get all the nodes to be shown on my REST service. When I query the endpoint index http://server/api/node it only returns 20 results. Are there any additional parameters I can ...
2
votes
2answers
489 views

Services 3: Setting taxonomy terms on node creation/update

For a custom node type, I have defined a field that is to hold an unlimited number of values from a taxonomy vocabulary that I defined. This is what it looks like: [field_taxonomy] => Array ( ...
2
votes
0answers
118 views

Failure getting nodes from terms via the rest api

I have added a REST web service in Drupal and all content is tagged with taxonomy. I'm now trying to acquire all related nodes to the terms. First I'm calling taxonomy_vocabulary/getTree along with ...
2
votes
0answers
61 views

REST/Services: Only able to retrieve index. Everything else result in http error 500

I am pretty new to Drupal, and I'm trying to get a webservice running on my Drupal 7 site. For testing purposes, I made a Rest-service, with NO authentication, and all resource's added to it. I ...
1
vote
1answer
281 views

Module “Services” doesn't create term_referense field

Set up the Services module as REST server, so I can create nodes with custom fields by REST client like in documentation @ drupal.org. Settings of Services module: Server => REST Path to endpoint ...
0
votes
1answer
132 views

How can I use REST API to create a node with status/tags/data

Follow the Services module document, I can only create nodes using REST API with type/title/body, and can not create nodes with more params such as tags/status/date Need help.
0
votes
1answer
103 views

What will be the post parameter when specifying vocabulary term?

I am trying to create a drupal node with a iphone app via rest server. I want to send the request to drupal as json. I have added a taxonomy vocabulary for categorizing the nodes. Specifying a ...
1
vote
0answers
448 views

Create a drupal node via a rest server with json content type [closed]

I want to create drupal (version 6.21) nodes from an iphone application. For this I am using a REST server. I am using Firefox poster plugin to test my requests to the rest server. url: drupal ...
2
votes
1answer
308 views

Getting views data as a REST service

I need a way to get the output of a view as a REST service in JSON format. I read about the RestfulWS and the Services modules, but I didn't find enough documentation. Are these straight forward, or ...
5
votes
1answer
222 views

Using Drupal 7 multisite framework for a ReSTful API and Auth Strategy

My Situation I have a small app with a public interface. I'm interested in making an API for this to be used in a mobile environment and even eventually as a public API. I want to keep it simple with ...
0
votes
2answers
713 views

How do I consume REST as a client?

I need to import on node save information from a third party REST server and map that data to an entity that references the node saved. There will be a field in the node that the user can input an id ...
8
votes
2answers
1k views

drupal HTTP POST data

How do i send HTTP POST/GET data to drupal? for example: I've got a html form: <form action="mydrupalcite.com" method="get"> <input type="text" name="title" /> </form> how do ...
0
votes
1answer
460 views

Drupal7 REST webservices API KEY vs OAUTH two-legged authentication for clientside JS consumer library

I'm working on an Drupal7 API, using REST services, and consumer JS library (no server code). I'm not trying to authenticate/authorize the end-users, only to identify and allow access to the ...
4
votes
1answer
737 views

Clear example of Service module authentication and authorization

I've been playing around with Service module, which it seem the best module for exposing web service specificaly I have REST architecture. Nevertheless haven't been able to clear how does the ...
0
votes
0answers
88 views

Getting and Submitting forms via services

I currently manage a Drupal (Edit: D7) site consisting of many nodes with forms for the user to fill out. Webform is used for this. I'd like to use this system as a RESTful server that other websites ...
0
votes
0answers
138 views

Services module in drupal 7 is returning NULL

I am using drupal 7 and created sample nodes. I enabled services module and REST api. When i try to call the data of a particular node like www.mydrupaltest.com/api/node/2 it is returning NULL. Does ...
1
vote
1answer
327 views

Allowing authenticated users to create files through Service/Restful (Drupal 7)

I have setup a restful server running with the services module. I have also enabled to file resource. Using this setup I can successfully login from my client application, authenticate the session, ...
1
vote
1answer
863 views

JSONP requests not working in REST server

This is related to a bug report I filed just moments ago. If there's someone who has successfully used the REST server in the Services module with JSONP requests (cross-domain), I'd be happy to hear ...
2
votes
3answers
336 views

Receiving XML Posted data

I have a question about what would be the best way for a module to accept a posted XML file via a web service. What I am trying to do is receive the file, read through the contents of the file, and ...
2
votes
1answer
247 views

Why does drupal_http_request return a 400?

I am having issues sending a POST via my module. In my browser's REST client I get a 200 with POST https://mydomain.com username=myuser&password=password1 So I know that the service is ...
2
votes
2answers
191 views

How to authenticate a user which exists in an external site?

I would like to authenticate a user which exists in an external site. Here is a use case: In Drupal, user enters his username and password and hits submit. Drupal tries to find that user in it's ...
2
votes
1answer
758 views

Match JSON POST data with custom node fields

Is there a fool-proof method to generate a correctly formatted JSON data object to be received by a create node resource given by a REST server, defined with Services in Drupal 7? I have setup a REST ...
0
votes
1answer
118 views

cache a rest server index request

I created one custom module for rest server, i created own resources and i want to be able to cache index request, for return a 304 with using http request if - headers. I cannot find information on ...
2
votes
1answer
452 views

How to customize the data retrieved by a REST call?

I've enabled the REST server (plus services) and can retrieve user profile data at www.example.com/endpoint/user/123 How can I customize the data that's being retrieve? I want to not include the ...
1
vote
2answers
81 views

Would a cached page in Drupal 7 be considered, solely by definition, RESTful?

I'm thinking about how to explain the definition of a RESTful interface and am wondering if a cached page in Drupal would, purely by definition be considered RESTful: ...
0
votes
1answer
427 views

Does RESTFul server running with services module really support multipart/form-data request parsin?

I have been trying for a long to get a file upload to work from my lisp application using an HTTPPost. I am running the services module on Drupal 7 with the a RESTFul server (with the file resource ...

1 2