mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 02:47:02 +00:00
🧑💻 Add a kernel API /api/filetree/getPathByID
* 🧑💻 Add a new api '/api/filetree/getPathByID' * 🧑💻 Add a new api '/api/filetree/getPathByID'
This commit is contained in:
22
API.md
22
API.md
@@ -462,6 +462,28 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
|
||||
"data": "/foo/bar"
|
||||
}
|
||||
```
|
||||
|
||||
### Get storage path based on ID
|
||||
|
||||
* `/api/filetree/getPathByID`
|
||||
* Parameters
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "20210917220056-yxtyl7i"
|
||||
}
|
||||
```
|
||||
|
||||
* `id`: Block ID
|
||||
* Return value
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"msg": "",
|
||||
"data": "/20210828150719-r8edxl2/20210917220056-yxtyl7i.sy"
|
||||
}
|
||||
```
|
||||
|
||||
### Get IDs based on human-readable path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user