class Reports(APIView):
    permission_classes = permissions.AllowAny,

def get(self, request, ssn, validity, file):
    response = requests.get(settings.PROXY_BASE_URL + '/reports/' + ssn +
        '/' + validity + '/' + file)
mimetype = mimetypes.guess_type(settings.PROXY_BASE_URL + '/reports/' + ssn +
    '/' + validity + '/' + file)
return HttpResponse(response, content_type=mimetype[0])
Using Django Rest Framework as security layer for file system processing