Does Django Rest Framework Have Third Party Apps To Auto Generate Swagger.yaml File?
I have large amount of API endpoints written in django-rest-framework and it keeps increasing and updating. How can I create & maintain API documentation that should be up-to-
Solution 1:
Yes, you could take a look at drf-yasg:
The quickstart shows how 4 endpoints are created including one which outputs swagger.yaml file. Once you have included drf-yasg, you can navigate to:
http://localhost:8000/swagger.yaml
which will then allow you to save the swagger docs to disk.
Post a Comment for "Does Django Rest Framework Have Third Party Apps To Auto Generate Swagger.yaml File?"