-
Is it possible to generate the API docs for use offline or to be copied to a separate host? |
Beta Was this translation helpful? Give feedback.
Answered by
tylerdave
Jun 6, 2024
Replies: 1 comment
-
Ok I found that there's a management command to export the OpenAPI Spec:
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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tylerdave
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Ok I found that there's a management command to export the OpenAPI Spec:
./manage.py export_openapi_schema
ninja
needs to be inINSTALLED_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.