Skip to content

Can you generate API docs offline? #1184

Answered by tylerdave
tylerdave asked this question in Q&A
Discussion options

You must be logged in to vote

Ok I found that there's a management command to export the OpenAPI Spec:

./manage.py export_openapi_schema

ninja needs to be in INSTALLED_APPS for this to work.

It doesn't appear that there's a way to export the rendered page currently but you can take the spec file and deploy it with Swagger UI, Redoc, or others.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tylerdave
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
1 participant