title: REQUEST certain Elements in Django POST API from User
body: <p>I want to Request a dictionary like </p>
  
  <pre><code>{
      "username": "a",
      "password": "b",
      "year": "2019-20",
      "start": 1,
      "end": 2,
      "reference_id": "two"
    }
  </code></pre>
  
  <p>from a user so that a user can hit the API and get the desired result.</p>
  
  <p>My view looks like </p>
  
  <pre class="lang-py prettyprint-override"><code>
      def post(self,request, *args, **kwargs):
          # self.http_method_names.append("post")
          user = request.POST.get("user")
          pasd = request.POST.get("pasd")
          year = request.POST.get("year")
          start = request.POST.get("start")
          end = request.POST.get("end")
          reference_id = request.POST.get("reference_id")
          #Passing the parameters to another function to get the result. 
          status = main_function(user=user,pasd=pasd,year=year,start=start,end=end,reference_id=reference_id)
          return Response(status)
  
  
  </code></pre>
  
  <p>Now the problem when I'm posting something in Django like
  <a href="https://i.stack.imgur.com/i6BV7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i6BV7.png" alt="enter image description here"></a></p>
  
  <p>I'm getting None in every field. Ideally, I should get the values passed in the Dictionary.
  Can someone please help me here.</p>