title: How can I call a function within a DRF view?
body: <p>I am using Djano REST Framework for constructing APIs .I want something like below <br></p>
  
  <pre><code>def addTwoNumber(a,b):
      return a+b
  
  class MyView(viewsets.ModelViewSet):
      def create(self, request, *args, **kwargs):
          my_result=addTwoNumber(request.data.get('firstnum'),request.data.get('secondnum'))
          return Response(data={"my_return_data":my_result})
  </code></pre>
  
  <p>That is , I want a view that doesn't deals with the <code>queryset</code> &amp;<code>serializer_class</code> attributes. Is it possible ? Can anyone help me ?</p>