🎨 Add kernel API /api/filetree/getIDsByHPath https://github.com/siyuan-note/siyuan/issues/9654

This commit is contained in:
Daniel 2023-11-15 09:08:41 +08:00
parent 8eb5e53f81
commit 38099e4892
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 115 additions and 2 deletions

View file

@ -19,6 +19,7 @@
* [移动文档](#移动文档)
* [根据路径获取人类可读路径](#根据路径获取人类可读路径)
* [根据 ID 获取人类可读路径](#根据-ID-获取人类可读路径)
* [根据人类可读路径获取 IDs](#根据人类可读路径获取-IDs)
* [资源文件](#资源文件)
* [上传资源文件](#上传资源文件)
* [](#块)
@ -459,6 +460,32 @@
}
```
### 根据人类可读路径获取 IDs
* `/api/filetree/getIDsByHPath`
* 参数
```json
{
"path": "/foo/bar",
"notebook": "20210808180117-czj9bvb"
}
```
* `path`:人类可读路径
* `notebook`:笔记本 ID
* 返回值
```json
{
"code": 0,
"msg": "",
"data": [
"20200813004931-q4cu8na"
]
}
```
## 资源文件
### 上传资源文件