1
You can simply overwrite a resource’s dispatch method to do whatever you want
class FooResource(ModelResource):
class Meta:
# The usual stuff
def dispatch(self, request_type, request, **kwargs):
# Do whatever
Source:stackexchange.com