docs: clarify Polygon auth and API contracts
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user