from urllib import parse
from django.urls import resolve
uri = '/api/v1/myapp?my_filter=my_value'
data = parse.urlsplit(uri)
path = data.path
params = dict(parse.parse_qsl(data.query))
viewset = resolve(data.path).func.cls
queryset = viewset.filter_class(data=params).qs