#REST

Events happening in the community are now at Drupal community events on www.drupal.org.

Angular Separate Domain Drupal simple web app

Posted by lastlink on July 1, 2017 at 9:19pm

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

Service Module and REST: 404 Not found

Posted by klimpab on March 13, 2015 at 11:00am

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
10 comments Categories: , , ,

Services REST node create - tnid not set

Posted by swafran on June 25, 2014 at 8:46am

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
Categories: , ,

Drupal 8 and iOS

Posted by vivekvpandya on May 20, 2014 at 5:53pm

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

Cannot create node via Drupal 7 Services REST API

Posted by kerry.t.johnson on March 12, 2014 at 2:03am

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
6 comments Categories: ,

How to get Localized content?

Posted by halufa on March 19, 2012 at 12:55pm

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

AltStyle によって変換されたページ (->オリジナル) /