Documenting a Django API with OpenAPI and Dataclasses
In this blog post I will outline how to use Python 3.7 dataclasses to write type-annotated and documented code and OpenAPI (Swagger) to automatically document your API.
Tags: python, django, dataclasses, openapi