-
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok I found that there's a management command to export the OpenAPI Spec:
./manage.py export_openapi_schemaninjaneeds to be inINSTALLED_APPSfor 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.