mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
✨ 增加根据 ID 获取人类可读路径 API https://github.com/siyuan-note/siyuan/issues/4229
This commit is contained in:
25
API.md
25
API.md
@@ -18,6 +18,7 @@
|
||||
* [Remove a document](#Remove-a-document)
|
||||
* [Move a document](#Move-a-document)
|
||||
* [Get human-readable path based on path](#Get-human-readable-path-based-on-path)
|
||||
* [Get human-readable path based on ID](#Get-human-readable-path-based-on-ID)
|
||||
* [Assets](#Assets)
|
||||
* [Upload assets](#Upload-assets)
|
||||
* [Blocks](#Blocks)
|
||||
@@ -396,7 +397,7 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
|
||||
}
|
||||
```
|
||||
|
||||
### Get human-readable path based on path
|
||||
### Get human readable path based on path
|
||||
|
||||
* `/api/filetree/getHPathByPath`
|
||||
* Parameters
|
||||
@@ -420,6 +421,28 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
|
||||
}
|
||||
```
|
||||
|
||||
### Get human readable path based on ID
|
||||
|
||||
* `/api/filetree/getHPathByID`
|
||||
* Parameters
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "20210917220056-yxtyl7i"
|
||||
}
|
||||
```
|
||||
|
||||
* `id`:Block ID
|
||||
* Return value
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"msg": "",
|
||||
"data": "/foo/bar"
|
||||
}
|
||||
```
|
||||
|
||||
## Assets
|
||||
|
||||
### Upload assets
|
||||
|
||||
Reference in New Issue
Block a user