api.admin
Admin UI for viewing and editing the in-memory config snapshot.
admin_page
@router.get("/admin", response_class=HTMLResponse)
def admin_page() -> HTMLResponse
Serve the single-page admin UI.
admin_get_config
@router.get("/admin/api/config")
def admin_get_config(authorization: str | None = Header(default=None),
label: str | None = None) -> Response
Return config keys and values as JSON.
When label is provided and the service runs in Azure mode, loads
config directly from Azure App Configuration for that label. Otherwise
returns the in-memory snapshot.
admin_put_config
@router.put("/admin/api/config/{key:path}")
async def admin_put_config(
key: str,
request: Request,
authorization: str | None = Header(default=None)
) -> Response
Update a single config value.
When label is provided in the JSON body and the service runs in Azure
mode, writes the value directly to Azure App Configuration for that label.
Otherwise updates only the in-memory snapshot.
// was this page useful?