I’m currently working on a Django project and utilizing Django Rest Framework (DRF) for building APIs. I’ve integrated drf-pectacular for automatic API documentation generation, but I’m finding that using decorators to customize the documentation is making my codebase messy.
I’m interested in exploring alternative approaches to customize my DRF documentation without relying heavily on decorators. Could someone provide guidance on how to achieve this? I’m specifically looking for methods or techniques that allow me to customize the documentation while keeping my code clean and maintainable.
Any suggestions, examples, or best practices would be greatly appreciated. Thank you!