docs: clarify Polygon auth and API contracts

This commit is contained in:
2026-10-25 14:20:35 +03:00
parent e3a031ce50
commit 474bfb2600
9 changed files with 128 additions and 17 deletions
+3
View File
@@ -78,6 +78,7 @@ def index():
svc_list=svc_list,
stands_list=stands_list,
current_stand=current_stand,
swagger_url=(f"/{current_stand}/swagger" if len(stands_list) > 1 else "/swagger"),
endpoint=_POLYGON_ENDPOINT,
)
@@ -92,8 +93,10 @@ def swagger():
from routes.openapi import _build_spec
import json as _json
spec_json = _json.dumps(_build_spec(), ensure_ascii=False)
home_url = f"/{g.stand_id}/" if len(_cfg.list_stands()) > 1 else "/"
return render_template(
"swagger.html",
version=_cfg.VERSION,
spec_json=spec_json,
home_url=home_url,
)