| feat(docs): add full API reference generated from the live OpenAPI spec Adds a Stripe-style API reference to the docs site at /reference: - Pulls https://api.learnhouse.io/openapi.json (env-configurable via LEARNHOUSE_API_URL) with ISR caching (1h revalidate); a committed snapshot keeps builds green and dev offline-capable if the API is unreachable - Documents the token-usable surface (317 operations across 18 groups) via an explicit allow-list; internal tags never appear - Per-operation articles: params, request/response schemas, curl / JavaScript / Python examples (JSON, multipart and form-encoded bodies) highlighted server-side with shiki - Paste-once lh_ token: stored in localStorage, substituted into every example and copy action, synced across tabs - Live playground per endpoint, proxied through /api/reference-proxy (same-origin; forwards only the Authorization header, strict /api/v1 path validation, no cookies) since API CORS is pinned to tenant domains - New top-level "API Reference" navbar section; existing developer API guide pages now point to the reference | 3 个月前 |