| title | Docs JSON API (Experimental) |
|---|---|
| summary | Provide a structured JSON API for TiDB docs with topic and feature filters. |
This API layer exposes structured metadata for markdown docs.
- Query docs by feature token (for example,
tidb_max_dist_task_nodes) - Query docs by topic/category
- Return structured schema instead of raw markdown only
Each doc record includes:
idpathtitlesummaryproducttopicsfeaturesheadingsfrontMatterfrontMatterRawupdatedAt
npm run docs-api:buildDefault output file: tmp/docs-api-index.json
npm run docs-api:serveDefault host and port: 127.0.0.1:3000
GET /healthzGET /schemaGET /topicsGET /featuresGET /features?prefix=tidb_GET /docsGET /docs?feature=tidb_max_dist_task_nodesGET /docs?topic=tidb-cloudGET /docs?q=resource controlGET /docs?feature=tidb_max_dist_task_nodes&limit=10&offset=0GET /reload(reload in-memory index)
DOCS_API_HOST(default127.0.0.1)DOCS_API_PORT(default3000)DOCS_API_ROOT(default current working directory)DOCS_API_INDEX_FILE(optional prebuilt JSON index path)