mirror of
https://github.com/longbridge/developers.git
synced 2026-09-19 03:34:09 +08:00
47139258bb
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).
3.7 KiB
3.7 KiB