There are two ways to generate an OpenAPI spec in Django Rest Framework: CLI command and API endpoint. How it worksThe actual spec is produced by an underlying generator class, called by either a CLI command or an API endpoint. Long story short: generator collects the project endpoints from settings.
OpenAPIOpenAPI is a specification used to describe API services. It is also known as a Swagger specification. It is used by various languages and frameworks as a format to describe API services. OpenAPI specifies how to produce a document which is supposed to be a textual representation of your entire