Is there a way to define different Serializers within a ModelViewSet Mixin like CreateModelMixin? I found several threads having different Serializers for different Methods. But i need to accept different schemas on the POST and GET Methods.
I think it is no Problem to override the create method and select the correct serializer within it, but doing this will break the swagger generation. Is there a way to annotate the create Method to have correct swagger documentation with @swagger_auto_schema (show 2 possible Schemas for Method)? -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.