We attempted to HTTP GET data from get action with the service_views with an argument from a view as follows:
http://example.com/services/rest/service_views/get.xml?view_name=VIEWNAM...
To test, use a URI similar to the above from a browser.
There were multiple problems which we tracked down to arguments not being passed from $_GET during from a GET request, and resources not being passed around.
Solved
See patch file attached for 6.x-2.0-beta3
REQUEST - Is this a bug? Can this change be incorporated in next release?
Comments
Comment #1
Yacko commentedThanks for this usefull patch !!
Comment #2
lelizondo commentedPatch worked for me also. Thanks.
Comment #3
sudhanwa commentedI have following versions installed ...
Drupal 6.22
services 6.x-3.1
services-views 6.x-1.x dev
I have enabled services_views module and selected the views resource in the service endpoint config
and i am getting the same 404 error when for .../api/service_views/get from Curl
HTTP/1.0 404 Not found: Could not find resource service_views
Does the same patch apply to the versions i have installed ?
Thanks,
-Sudhanwa
Comment #4
lelizondo commentedREST server I think is not compatible with Services 3.x. I would recommend that you migrate to Services 3.x, is really stable.
Take a look at http://drupanium.org/api for documentation on how to use the right paths
Comment #5
sudhanwa commentedgot it working ...
the resource name is 'views' and not service_views
The curl .../api/service_views/get
should be changed to .../api/views/get
the complete curl command is as follows -
curl -v http://testdrupal/api/views/viewname.json?args=arg1&display_id=default
Comment #6
sudhanwa commentedHi lelizondo - i did not understand your comment - "REST server I think is not compatible with Services 3.x. I would recommend that you migrate to Services 3.x, is really stable."
I am already on services 3.x, you are asking me to move to 3.x, again. Have i misunderstood something ?
BTW, someone please point me to the stable version of services_views for my drupal and services versions . The version i am using seems to be a dev version.
Comment #7
kenorb commentedClosed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.