Closed (fixed)
Project:
Services
Version:
7.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2011 at 00:54 UTC
Updated:
17 Nov 2014 at 00:50 UTC
Jump to comment: Most recent
Comments
Comment #1
bsenftner commentedAdded info:
I love the examples given in notes.js, such as:
What would the equivalent to call a targeted action? (I've located the resource definitions in 'user_resource.inc', which give examples of defining a targeted action, but I still don't know how to call a targeted action, like how notes.js demonstrates calling each of the CRUD operations.)
Comment #2
kylebrowning commentedYou call a targeted action by POST to the url, comments resource has a great example of this
Comment #4
chmhalford commentedThis issue is almost a year old, but it was the first result on Google when I tried searching for "drupal services targeted actions". After a bit more Googling, I found this page: http://artclutch.com/sites/all/modules/services/tests/services_test_resource/services_test_resource.module
The targeted action example on there is as follows:
Comment #5
bsenftner commentedI guess I should have updated my post here. I figured it out a while a go, and posted at my personal site an example demonstrating all CRUD + Relationship + Action operations:
http://www.blakesenftner.com/Services-3-examples
Comment #6
Ashish Madkaikar commentedhere's a working link for targeted actions example
http://drupalcontrib.org/api/drupal/contributions%21services%21tests%21services_test_resource%21services_test_resource.module/7
Comment #7
generalredneckI know this is an old thread, but it's the first thing that comes up via Google. A great example is also the Node service resource. Take a look at the following: http://cgit.drupalcode.org/services/tree/resources/node_resource.inc?h=7...
Comment #8
generalredneck