Retreiving all nodes of one type using services to flex/flashbuilder

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

I am in the process of developing an admin tool for a D6 site in FlashBuilder using AMFPHP and services v2. Currently im using the views service to create a view to get all the data from a list of nodes to download to my admin tool to work with it and then using the node.save to update drupal.

However as of services 3 and D7 the views service no longer exists so im wondering how to futureproof the tool so that i dont have to do a full rewrite for D7 / Services 3.

I considered using the search.node service to do a search for all nodes of one type using keyword: TYPE:nodetype but it seems that i also have to include some actual string of text when using the search.

Can anyone recommend the proper way to download all nodes of 1 type (to say fill a datagrid in Flex) without using the views service module so that i can port the tool to D7/Services 3?

Comments

you could write a module

rolf vreijdenberger's picture

you could write a module yourself, since it shouldn't be too that hard to write a query that retrieves all nodes of a certain type and you could make it configurable.
downside would be that you won't have the flexibility of views.

there is a http://drupal.org/project/services_views project underway for services 3.
there is also a patch for D7 services 3: http://drupal.org/node/1135972 which you can try.

the services resources will come soon :)

good luck

Kind regards,

Rolf Vreijdenberger

drupal and flash: http://www.dpdk.nl/opensource/drupalproxy-as-a-bridge-between-flash-as3-...

Me too

paloma.jimenez's picture

Hey, i'm looking for the same thing. I found this two resources, maybe they can help:

http://www.jefflinwood.com/2010/08/using-drupals-views-as-a-json-web-ser...
http://stackoverflow.com/questions/5290414/drupal-views-services-want-th...

I couldn't make it work (Views server) but still trying. Plz if any body else is in search or have a similar solution inform!

Services

Group organizers

Group categories

Group notifications

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