rest

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

Why is a date field posted in one format and returned in a different?

Posted by skybow on May 11, 2015 at 10:14pm

I started working on a C++/Qt library for accessing a Drupal site via Services and a REST server (I'm more into C++ than PHP and Drupal module hacking), when I ran into the following problem: When I retrieve a node via node.retreive request, modify some fields of the returned JSON object and repost the changes via node.update request, Date field content will be killed.

Read more
2 attachments Categories: , ,

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

Viewing a Rest end point logs me out of Drupal

Posted by rjdjohnston on September 27, 2012 at 11:37pm

Hello,

We're using Services with Service Views and Rest. When I visit the end point (domain.com/services/rest/tv) the data is displaying correctly but when I navigate to my other screen I find out I have been logged out of Drupal.

This error is displayed when I refresh Drupal:

Notice: Undefined index: rest_server in services_endpoint_callback() (line 196 of /vhosts/dev.worldviewweekend.com/html/sites/all/modules/contrib/services/services.module).

This happens every time I refresh the endpoint.

Any ideas?

Thanks

Read more
Anonymous's picture

Create node only via REST Services disabling creation via web

Posted by Anonymous on March 2, 2012 at 11:54am

Hi,

I'm developing an iPhone app to populate Drupal nodes using client side DIOS libraries.
The server side is a Drupal 6 with Services 3.1 and REST server 3.1 modules.
I'm able to create nodes via iPhone interface after authentication but I want to restrict node creation only via iPhone app, denying users to create nodes directly from /node/add page.

Is there any way to do that?

Thanks,
Igor

Read more
2 comments Categories: , ,

Getting Started - Help!

Posted by gmak on February 14, 2012 at 11:12am

Hi,

I've just started using Services 3 for a project where (eventually) we will be accessing Drupal via webservices. I have the modules installed and everything seems to be working in my tests.

However, as I try to start to try to create nodes, I am running into problems.

I have setup a REST server, with node as one of the resources available. I can create a node, which is stored in the database, but it is only creating the title. It appears that my formatting of the JSON query is not correct, but I can find little to suggest where my problem might lie.

Read more
6 comments1 attachment Categories: , ,
Subscribe with RSS Syndicate content

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

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