mirror of
https://github.com/longbridge/developers.git
synced 2026-09-19 03:34:09 +08:00
683 B
683 B
Try-It API Split
Based on the existing ?mode=try-it mechanism, this script splits documented HTTP APIs into per-locale JSON specs.
Run
bun run split:tryit-apis
Output
Generated files:
openapi/tryit/apis.en.jsonopenapi/tryit/apis.zh-CN.jsonopenapi/tryit/apis.zh-HK.jsonopenapi/tryit/apis.all.json
Each record includes:
titlemethodpathsource(doc file path)params(parsed from Parameters table)
Purpose
- Make each API an explicit unit from existing Try-It docs
- Provide machine-readable inputs for:
- API validation pipeline
- future per-API Try-It rendering refactor
- parity checks across locales