Filtered request to API when the user changes the filters

* Expected 'doc' to have an indentation at 5 instead at 6.