REST stands for REpresentational State Transfer.

learn more… | top users | synonyms

0
votes
0answers
16 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
0answers
15 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
48 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
16 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
7 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
34 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
1answer
16 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
35 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
40 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
103 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
52 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
56 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
152 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
22 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
105 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
19 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
1answer
52 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
17 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
50 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 ...
2
votes
2answers
367 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
13 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
102 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
179 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
87 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
69 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
74 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
289 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
124 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
947 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 ...
3
votes
2answers
535 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
495 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
150 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
66 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
210 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
96 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
162 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
174 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
1k 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
132 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
948 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
1k 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
682 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
100 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
305 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
235 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
37 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
52 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
1answer
295 views

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

I'm using Services with Drupal 7 and I built a rest service with it, I also included the Privatemsg module and the Entity API module. I can see under the my service a resource called ...
0
votes
1answer
613 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 ...