Filtered request to API when the user changes the filters

* Expected '}' to have an indentation at 1 instead at 2.