Hello, I wanted to create a document for my api and I decided to use swagger, when I realized that wherever APIView is used, it does not recognize the fields of that smell and it is displayed in the empty field section.
Can you please include more information about what you’re doing (the code will be helpful), what is actually happening (screenshots here will help), and what you want to happen (maybe annotate those screenshots indicating what you’d like to see differently). A good question is rarely one sentence.
Normally this “does not work” because the swagger generators can’t instropect your class to look for the Serializer.
I haven’t tested this, but maybe setting a
serializer_class attribute on your class body will make it work.
class YourView(APIView): serializer_class = YourSerializer # Your stuff