## Summary - **Branding & version**: SDK 页与文档统一为 longbridge 品牌、版本 4.0.0,修正仓库与包地址 - **Getting started**: 更新 API Host、OAuth 示例与 4.0.0,修正 typo(开发中 → 开发者) - **Request examples**: 为所有 API 请求示例补充多语言 tabs(Python/Node/Java/Rust/C++),并增加 Go SDK 示例(en / zh-CN / zh-HK) - **Dependencies**: 更新 package.json 与 bun.lock Made with [Cursor](https://cursor.com)
This PR performs an OAuth2/API docs audit and applies cross-locale fixes for en / zh-CN / zh-HK. ## What was verified - OAuth discovery endpoints are reachable: - `https://openapi.longportapp.com/.well-known/oauth-authorization-server` - `https://openapi.longbridge.xyz/.well-known/oauth-authorization-server` (test only) - Health endpoint works on prod/test: `/v1/test` - Auth-required sample endpoint correctly rejects missing token: `/v1/asset/account` -> 401 Audit report added: - `openapi/audit/audit-summary.md` - `openapi/audit/audit-summary.json` - Script: `script/audit_api_docs.py` ## Docs fixes (all 3 locales) 1) Added OAuth 2.0 recommended flow to `api-reference/how-to-access-api.md` - Added discovery URLs - Added bearer token usage - Clarified legacy signature docs are compatibility reference 2) Updated `api-reference/refresh-token-api.md` - Clarified OAuth2 refresh recommendation via `/oauth2/token` + `grant_type=refresh_token` - Kept legacy `/v1/token/refresh` as compatibility reference 3) Added Mintlify-style per-endpoint API listing page under API Reference: - `api-reference/endpoints.md` - One-by-one API listing with Method + Path + doc link + Try link 4) Expanded API Reference group by default (`collapsed: false`) for easier discovery. ## Result - API docs are now clearer about OAuth2 deployment status. - API listing/discoverability is significantly improved. - Cross-locale consistency for documented HTTP APIs is verified (0 parity gaps found).