2

I followed this post, I am able to filter nodes based on content type and other parameters

http://test/api/node?parameters[nid]=1&parameters[status]=1

but I am not able to filter based on taxonomy terms (tid), problem is with nested json, how do I pass the parameter on URL for nested json?

I don't want to use services_views.

Below is my json data,

{
    "vid": "142",
    "uid": "2",
    "title": "Tomato",
    "log": "",
    "status": "1",
    "comment": "1",
    "promote": "1",
    "sticky": "0",
    "nid": "142",

..
..

 "field_category": {
        "und": [
            {
                "tid": "2"
            }
        ]
    },
}
  • can you able to pass taxonomy terms instead of tid? – Krishna Mohan Apr 8 '14 at 13:32
  • no, this in created by default, I have no clue how to pass taxonomy terms. Thank you. – shrish Apr 8 '14 at 13:34
0

This is what I tried and it works perfectly,

http://test/api/node?parameters[nid]=1&parameters[field_category]=1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.