Add filters to rest_api.