接口
认证
Authorization: Bearer <jwt> 或 X-API-Key <sk_...>。最小角色:viewer。
路径参数
string
required
工作空间 id。
string
required
仓库 id。
请求体
string
检索文本(省略时回退到查询参数
query)。integer
返回的最相似符号数量。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X POST https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/code-repos/repo_01a2b3c4d5e6/search \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"query":"register API routes","k":5}'
[
{
"id": "sym_01a2b3c4d5e6",
"repo_id": "repo_01a2b3c4d5e6",
"file_path": "internal/api/api.go",
"name": "RegisterRoutes",
"kind": "function",
"signature": "func RegisterRoutes(r *gin.Engine, s *Services)",
"content": "func RegisterRoutes(...) { ... }",
"line_start": 50,
"line_end": 129
}
]
通过 POST /v1/workspaces/:workspace_id/code-repos/:repo_id/search 在仓库内语义检索符号。最小角色 viewer。
curl -X POST https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/code-repos/repo_01a2b3c4d5e6/search \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"query":"register API routes","k":5}'
[
{
"id": "sym_01a2b3c4d5e6",
"repo_id": "repo_01a2b3c4d5e6",
"file_path": "internal/api/api.go",
"name": "RegisterRoutes",
"kind": "function",
"signature": "func RegisterRoutes(r *gin.Engine, s *Services)",
"content": "func RegisterRoutes(...) { ... }",
"line_start": 50,
"line_end": 129
}
]
POST /v1/workspaces/:workspace_id/code-repos/:repo_id/search
Authorization: Bearer <jwt> 或 X-API-Key <sk_...>。最小角色:viewer。
query)。curl -X POST https://memo.ariacompute.cn/v1/workspaces/ws_01a2b3c4d5e6/code-repos/repo_01a2b3c4d5e6/search \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{"query":"register API routes","k":5}'
[
{
"id": "sym_01a2b3c4d5e6",
"repo_id": "repo_01a2b3c4d5e6",
"file_path": "internal/api/api.go",
"name": "RegisterRoutes",
"kind": "function",
"signature": "func RegisterRoutes(r *gin.Engine, s *Services)",
"content": "func RegisterRoutes(...) { ... }",
"line_start": 50,
"line_end": 129
}
]
Was this page helpful?