🧑‍💻 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:
ytm157 2024-08-28 17:45:09 +08:00 committed by GitHub
parent b062d3f45f
commit 593e3141ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 76 additions and 0 deletions

22
API.md
View file

@ -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