Hi,
Running Services 7.x-3.3 with services_views 7.x-1.0-beta2. I've created an endpoint with the name dios and accessing a view http://webserver/drupal/dios/views/driver_vehicles.json (which is a view that exists) returns:
[]
and that's it.
Passed Arguments:
Array
(
[view_name] => driver_vehicles
[display_id] => default
[args] => Array
(
)
[offset] => 0
[limit] => 10
[format_output] =>
[filters] => Array
(
)
)By applying the patch found here, I can at least see a list of views like this:
{"1":{"vid":"1","name":"blog","description":"","tag":"default","base_table":"node","human_name":"Blog","core":"7"},"2":{"vid":"2","name":"driver_vehicles","description":"","tag":"default","base_table":"node","human_name":"Vehicles","core":"7"},"3":{"vid":"3","name":"your_campaigns","description":"","tag":"default","base_table":"node","human_name":"Campaigns","core":"7"},"4":{"vid":"4","name":"locations","description":"","tag":"default","base_table":"node","human_name":"Locations","core":"7"},"5":{"vid":"5","name":"appointments","description":"","tag":"default","base_table":"node","human_name":"Appointments","core":"7"},"6":{"vid":"6","name":"notifications","description":"","tag":"default","base_table":"messaging_simple","human_name":"Notifications","core":"7"},"7":{"vid":"7","name":"pending_campaigns","description":"","tag":"default","base_table":"node","human_name":"Pending campaigns","core":"7"},"8":{"vid":"8","name":"utility_newly_active_campaigns","description":"","tag":"default","base_table":"node","human_name":"Utility: Newly active campaigns","core":"7"},"9":{"vid":"9","name":"utility_newly_completed_campaign","description":"","tag":"default","base_table":"node","human_name":"Utility: Newly completed campaigns","core":"7"},"10":{"vid":"10","name":"set_rear_slopes","description":"","tag":"default","base_table":"taxonomy_term_data","human_name":"Set rear slopes","core":"7"},"11":{"vid":"11","name":"payments","description":"","tag":"default","base_table":"node","human_name":"Payments","core":"7"}}
As you can see, driver_vehicles is a valid view and the user I'm logged in as has rights to see it but I still get [] instead of any meaningful return. Session authentication is enabled.
Help :)
Comments
Comment #0.0
AntiThesis commentedMade code neater.
Comment #0.1
AntiThesis commentedClarified
Comment #1
ygerasimov commentedPatch that you have applied has nothing to do with the problem you have described. You just retrieving list of available views but not the view results.
I suggest you to create a Services display in your driver_vehicles view and then enable it in services resource. This is described on project page (http://drupal.org/project/services_views).
Comment #2.0
(not verified) commentedClarified again.