Generate OpenAPI Schema for Views with Multiple Serializers

26 views
Skip to first unread message

Jon Danao

unread,
Jul 26, 2019, 6:59:49 PM7/26/19
to Django REST framework
Hi guys,

I have a model named Account, an AccountSerializer (for get request) and CreateAccountSerializer (with fewer fields, for post and put requests). 

1) How can I make these reflect in the schema? 
2) Is it mandatory to use GenericAPIView subclass so it can generate proper schema? Can I use APIView only?

Thanks!

Jon
Reply all
Reply to author
Forward
0 new messages