Files
site/apps/api/scripts/export_openapi.py
T
vlad 86cc3fa541 Update admin theme/layout and refresh README details.
Align the project baseline with the latest admin interface styling and layout structure while documenting setup and usage updates in README.
2026-07-14 17:12:28 +03:00

15 lines
291 B
Python

from pathlib import Path
import json
from app.main import app
def main() -> None:
schema = app.openapi()
output = Path(__file__).resolve().parent.parent / "openapi.json"
output.write_text(json.dumps(schema, indent=2), encoding="utf-8")
if __name__ == "__main__":
main()