Drupal service (service module) examples
Call a drupal service (service module) using curl example:
GET examples;
http://localhost/gopi/taxonomy_term?page=0&fields=name,weight&options[orderby][name]=desc
curl -i http://localhost/voc/taxonomy_vocabulary/getTree --header 'Content-Type: application/json' --header 'Accept: application/json' --data '{"vid":"yourvid"}'
You should be using 'operations' in services module for the post.
Post examples;
You should be using 'operations' in services module for the post.
Post examples;
curl -H 'Content-type: application/json' -X POST -d '"param1":"value1","param2":[{"value":"test"}]'
[{"value":"test"}] is a array
GET examples;
http://localhost/gopi/taxonomy_term?page=0&fields=name,weight&options[orderby][name]=desc
q=endpoint/taxonomy_term.json&fields=tid,name¶meters[name]=%foo%&options[parameters_op][name]=like&options[orderby][name]=asc
Comments
Post a Comment