I create a exposed filter of field field_nick_name.

and I visit this link http://drupal/daxuebao/api/views/user_search_by_nick?filters[field_nick_name]=a.

But can not work.

Comments

bezprym’s picture

You should check your services, do you have access to that view in your api services.

ibraaheem’s picture

It actually works for me. My issue is with exposed filter text containing space. Using + or %20 is not working

ibraaheem’s picture

Eventually got it to work using # between the two words.

DrupalWoody’s picture

Priority: Major » Critical
DrupalWoody’s picture

Filtering is not working period. It does not work for node IDs or any other feature of my content.

dbassendine’s picture

Make sure you don't have Captcha module enabled with the "Default challenge on non-listed forms" option (in admin/config/people/captcha) set to on. This configuration broke the entire services views endpoint when exposed filters were added to the view, regardless of whether they were called in the URL or not.

Hopefully this will save someone some time!

sano’s picture

Status: Active » Needs review

Exposed filters work ok for me. I encountered some problems when filtering by taxonomy ID, for which I had to create a relationship to get the actual term ID. The key in the service url must be the field name.