I have the services module installed, and I have both taxonomy_term
and taxonomy_vocabulary
checked. However I'm having problems getting just the terms for one vocabulary. when I do curl -g "http://domain.com/endpoint/taxonomy_term?args[0]=machine_name_of_vocabulary"
or curl -g "http://domain.com/endpoint/taxonomy_term?args[0]=2"
I get an xml result like this:
<result>
<item>
<tid>2</tid>
<vid>2</vid>
<name>Blue</name>
<description/>
<format>filtered_html</format>
<weight>0</weight>
</item>
<item>
<tid>1</tid>
<vid>5</vid>
<name>Apple</name>
<description/>
<format>filtered_html</format>
<weight>0</weight>
</item>
</result>
which is the terms of all the vocabularies. In other words, I have the argument wrong, or the request wrong, or something else wrong.
How do I configure services and make a request to it to get only one vocabulary?