from rest_framework import generics
from rest_framework_tracking.mixins import LoggingMixin


class LoggingView(LoggingMixin, generics.GenericAPIView):

    def get(self, request):
        return Response('with logging')
Monitoring django rest framework api on production server