onconova.core.management.commands.export_openapi
__doc__
module-attribute
¶
Command
¶
Bases: BaseCommand
Django management command to export the OpenAPI schema from a NinjaAPI instance.
This command allows you to export the OpenAPI schema for your API, either to stdout or to a specified file. You can specify the API instance to use, customize the JSON output formatting, and control key sorting and ASCII encoding.
Example usage
python manage.py export_openapi_schema --api project.urls.api --output schema.json --indent 2 --sorted
help
class-attribute
instance-attribute
¶
add_arguments(parser)
¶
Source code in onconova/core/management/commands/export_openapi.py
handle(*args, **options)
¶
Source code in onconova/core/management/commands/export_openapi.py
runner