Spaces:
Sleeping
Sleeping
|
Download reference/api.md from duqing026/deepwiki-open: direct link, hf CLI and curl.
- Browser
- Download file 405 Bytes
-
https://huggingface.co/spaces/duqing026/deepwiki-open/resolve/main/reference/api.md
- Command line
-
hf download hf://spaces/duqing026/deepwiki-open/reference/api.md
-
curl -L -o api.md https://huggingface.co/spaces/duqing026/deepwiki-open/resolve/main/reference/api.md
405 Bytes
| # API 参考 | |
| DeepWiki-Open 后端提供了一系列 API 供前端或第三方集成调用。 | |
| ## 核心端点 | |
| ### 生成 Wiki | |
| `POST /api/v1/generate` | |
| **请求体:** | |
| ```json | |
| { | |
| "repo_url": "https://github.com/username/repo", | |
| "branch": "main" | |
| } | |
| ``` | |
| ### 聊天查询 (RAG) | |
| `POST /api/v1/chat` | |
| **请求体:** | |
| ```json | |
| { | |
| "query": "这个项目的认证逻辑在哪里?", | |
| "context_id": "..." | |
| } | |
| ``` | |