Skip to content

How can I run a command that emits a open-api.json schema file? #820

Answered by vitalik
madhavgharmalkar asked this question in Q&A
Discussion options

You must be logged in to vote

@madhavgharmalkar

you just add ninja to installed apps:

INSTALLED_APPS = [
    ...
    'ninja',
]

and then you should be able to get it like this:

 python manage.py export_openapi_schema

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@madhavgharmalkar
Comment options

Answer selected by madhavgharmalkar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants