mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-26 08:54:07 +01: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:
parent
b062d3f45f
commit
593e3141ab
5 changed files with 76 additions and 0 deletions
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue