title: Django Rest Framework Send Data to View Without Serializer
body: <p>I have a <code>Magic</code> model in my application. I need the user who is attached to this model to go to their email address to verify something before they can access the information. This should happen over a RESTful API. The problem is, the user should not necessarily be logged in to access this feature (for design decisions I had no control over). </p>
  
  <p>I have implemented the logic for generating the necessary information and sending the email (only if such an email is registered), authentication once the emailed information is accessed, etc. </p>
  
  <p>My question: How do I implement a view that takes a user email in the body (or url)?</p>
  
  <p><strong>Approach 1</strong>: create a url <code>/magic_api/v1/tdbverification/(?P&lt;email&gt;[\w.@]+)/</code> and extract the email address and send the email.</p>
  
  <p><strong>Problem with 1</strong>: I cannot seem to extract the email <em>and</em> I need to return a json object without having a serializer</p>
  
  <p><strong>Approach 2</strong>: Create a view that takes body: <code>{"email": "&lt;email@here.com&gt;"}</code> </p>
  
  <p><strong>Problem with 2</strong>: This requires a serializer without a model (as this view is just for sending the email, it does not change model objects). I tried working with a <code>serializers.Serializer</code> class but could not figure out how to incorporate the email sending logic.</p>
  
  <p>Any help with this will be much appreciated.</p>