title: DRF Post to ViewSet without writing into Model
body: <p>I've always written data into database when posting via Django Rest Framework endpoints. This time I would like to process received data and send it somewhere else <em>without</em> writing into DB. I switched from <code>ModelViewSet</code> to <code>ViewSet</code>, I can issue GET request OK but receiving <em>Bad Request 400</em> when I curl or POST via DRF URL. Here's a working minimal code (removed need for authentication etc):</p>
  <ul>
  <li><em>urls.py</em></li>
  </ul>
  <pre><code>from django.urls import path, include
  from .views import ContactView
  from rest_framework import routers
  
  router = routers.DefaultRouter()
  router.register('message', ContactView, basename='message')
  
  urlpatterns = [
      path('', include(router.urls)),
  ]
  </code></pre>
  <ul>
  <li><em>serializers.py</em></li>
  </ul>
  <pre><code>from rest_framework import serializers
  
  class ContactSerializer(serializers.Serializer):
      text = serializers.CharField(max_length=250)
  </code></pre>
  <ul>
  <li><em>views.py</em></li>
  </ul>
  <pre><code>from rest_framework.response import Response
  from .serializers import ContactSerializer
  from rest_framework import viewsets
  
  class ContactView(viewsets.ViewSet):
      def list(self, request):
          return Response('Got it')
  
      def create(self, request):
          serializer = ContactSerializer(data=request.data)
          if serializer.is_valid():
              return Response(serializer.data)
          else:
              return Response('Invalid')
  </code></pre>
  <p>Would greatly appreciate your suggestions.</p>