Closed (fixed)
Project:
Services
Version:
6.x-3.0-beta2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2011 at 13:28 UTC
Updated:
22 Feb 2011 at 19:40 UTC
Hi,
I'm trying to get the index controller to work on the node resource while filtering the list of returned nodes.
node_resource.inc line 258 suggests that something like
http://domain/endpoint/node?fields=nid,vid¶meters[nid]=7¶meters[...
should work.
However, every page,fields or parameters I add is not taken in account by the index controller.
I always get back an unfiltered list of nodes.
Is there anything I need to do to make this work ?
Any setting that needs setting ?
Thx !
Comments
Comment #1
rhavill commentedI think this is a bug in the file servers/rest_server/includes/RESTServer.inc. Line 185 creates an array element called 'params', but I think it should be called 'param'. Changing the array element solved the problem for me.
I installed the latest Drupal 6 development version of the services module (6.x-3.x-dev) and noticed that the problem does not exist in that version. You might want to install the devel version or change line 185.
Comment #2
lubrifix commentedThx rhavill.
You're right.
The problem is no longer present in that version.
Comment #3
kylebrowning commented