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&parameters[nid]=7&parameters[...

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

rhavill’s picture

I 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.

lubrifix’s picture

Thx rhavill.
You're right.
The problem is no longer present in that version.

kylebrowning’s picture

Status: Active » Closed (fixed)