Files
SIB/backend/list_paths.py

13 lines
337 B
Python

import json
try:
with open("vertexdc_openapi.json", "r", encoding="utf-16") as f:
data = json.load(f)
except Exception:
with open("vertexdc_openapi.json", "r", encoding="utf-8") as f:
data = json.load(f)
print("Paths found in OpenAPI:")
for path in sorted(data.get("paths", {}).keys()):
print(f"- {path}")