From this question, I know how to retrieve a list of forum posts (forum topics?) from drupal.
curl -i -X GET \
-H Cookie:SESSe6a353351df0bcafe98787beef=B0YAHD3-reWwwW-kzhqw6A-SgeShSYUAAQQjh \
'http://myserver/rest/node?parameters\[type\]=forum'
Now, I'd like to limit the list of forum posts to those belonging to a particular forum. How do I filter the result by forum? I know the forum tid. I just don't know how to format the query.
This doesn't cut it:
curl -i -X GET \
-H Cookie:SESSe6a353351df0bcafe98787beef=B0YAHD3-reWwwW-kzhqw6A-SgeShSYUAAQQjh \
'http://myserver/rest/node?parameters\[type\]=forum&tid=4'
The above returns all forum posts. This also does not work:
curl -i -X GET \
-H Cookie:SESSe6a353351df0bcafe98787beef=B0YAHD3-reWwwW-kzhqw6A-SgeShSYUAAQQjh \
'http://myserver/rest/node?parameters\[type\]=forum¶meters\[tid\]=4'
It gives me:
"Invalid query provided, double check that the fields and parameters you defined are correct and exist. SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tid' in 'where clause'"
I get the same error if I try to reference parameters\[taxonomy_forums\]
Any help?