I am using Drupal 7, with the Services module. I have the REST API enabled.
I have successfully done a user.login, and have retrieved the session id and session name, and then constructed the Cookie from same. I can successfully get a list of ALL nodes using this:
curl -i -X GET \
-H Cookie:SESS02cbaaadbeeef=Dw8dsijhd9usdkjlb4Plsz_dipuJumGww \
-H Accept:application/json \
http://myserver/rest/node
How do I get the list of nodes of a specific type? Eg, nodes of type=forum ?
I tried
curl -i -X GET \
-H Cookie:SESS02cbaaadbeeef=Dw8dsijhd9usdkjlb4Plsz_dipuJumGww \
-H Accept:application/json \
http://myserver/rest/node?type=forum
But that gave me the same list of all nodes.
Edit. this is what worked for me:
curl -i -X GET \
-H Cookie:SESS02cbaaadbeeef=Dw8dsijhd9usdkjlb4Plsz_dipuJumGww \
-H Accept:application/json \
'http://myserver/rest/node?parameters\[type\]=forum'
Thanks to burnsjeremy.