#REST

Events happening in the community are now at Drupal community events on www.drupal.org.
lastlink's picture

Angular Separate Domain Drupal simple web app

I have been working on a simple web app trying to decouple a cms to use a different front end on different domain.

The goal of the app was to be a gameroom lobby that would display gameservers, how many players they had, a link to them. These would then be editable by the gameserver itself w/ players having to login to see the lobby.

I was able to setup a drupal enabled the api, test the calls through postman and vscode rest client. I got login, logout, create, and update content to work from these clients.

Read more
klimpab's picture

Service Module and REST: 404 Not found

Hello! I hope that this is the right place.

I strictly followed this guide. The REST Server is activated. I try to access http://localhost/rest/user/token.json (the Drupal installation is at localhost) via the Firefox REST Easy Add-On. No success. It always gives me a "404 Not Found" error.

Under the "Resources" Tab of the Service Module configuration, all resources are enabled. What am I doing wrong?

Read more
swafran's picture

Services REST node create - tnid not set

Hi

I'm using services and rest_server v.7.x-3.7 to update translations on my site.

When creating a node for a translation, I set the tnid, but it is always written in the db as 0.

If I change line 312 of node_resource.inc from:

$stub_node = (object) array_intersect_key($node, array_flip(array('type', 'language')));

to:

$stub_node = (object) array_intersect_key($node, array_flip(array('type', 'language', 'tnid')));

The tnid is properly written to the db and everything works fine.

Read more
vivekvpandya's picture

Drupal 8 and iOS

Hello Drupal Community. I am Vivek Pandya, computer engineering student from India. I will try to create an example iOS application that connects to Drupal 8 via REST services as part of my Google Summer of Code program. For more details about my project you can visit following links.

Idea Page on drupal.org : https://groups.drupal.org/node/407793#project15

project source on github : https://github.com/vivekvpandya/TipsAndTricksCFNetworkingDrupal

companion website on which my application will operate : http://tntfoss-vivekvpandya.rhcloud.com ( Thanks to OpenShift Redhat PaaS)

Read more
kerry.t.johnson's picture

Cannot create node via Drupal 7 Services REST API

Services 7.x-3.7

I'm trying to POST a new node to my Drupal server (http://blah/rest/node), but the server is always returning an error with the string:

Not found: Could not find the controller

I have the node resource enabled for my endpoint. Within the node resource, the update option is enabled, which, according to the comments, is for both updating and creating nodes:

update: Update or create Node entities based on UUID

Read more
halufa's picture

How to get Localized content?

I'm using Drupal 7.12 with Services 7.x-3.1 and able to fetch content. But now i've a problem, and can't find solution or information for it anywhere: Does Services support localization?

Calling the following URL: http://localhost:7777/?q=en/rr/taxonomy_term/5.json

The answer given is:
{"tid":"5","vid":"1","name":"Services","description":"","format":"plain_text","weight":"0","language":"und","i18n_tsid":"0","vocabulary_machine_name":"connect"}

It ignores the prefix "en" and says language="und".

For index node retrieval have the same problem fetching the nodes for all languages.

Read more
Subscribe with RSS Syndicate content