From 8b7308f7b67f428e649bb41ae4604f6142652786 Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Tue, 8 Oct 2024 16:46:36 +0200 Subject: [PATCH] add missing file --- tools/export_openapi_yaml.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tools/export_openapi_yaml.py diff --git a/tools/export_openapi_yaml.py b/tools/export_openapi_yaml.py new file mode 100644 index 0000000..1397ec5 --- /dev/null +++ b/tools/export_openapi_yaml.py @@ -0,0 +1,9 @@ +from fastapi.testclient import TestClient + +from aggrec.server import AggrecServer + +app = AggrecServer() + +client = TestClient(app) +response = client.get("/openapi.yaml") +print(response.text)