mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 提供删除文件 API Fix https://github.com/siyuan-note/siyuan/issues/7678
This commit is contained in:
parent
6eb5830d75
commit
d04eacbf9a
4 changed files with 76 additions and 3 deletions
22
API_zh_CN.md
22
API_zh_CN.md
|
|
@ -38,6 +38,7 @@
|
|||
* [文件](#文件)
|
||||
* [获取文件](#获取文件)
|
||||
* [写入文件](#写入文件)
|
||||
* [删除文件](#删除文件)
|
||||
* [导出](#导出)
|
||||
* [导出 Markdown 文本](#导出-markdown-文本)
|
||||
* [通知](#通知)
|
||||
|
|
@ -858,6 +859,27 @@
|
|||
}
|
||||
```
|
||||
|
||||
### 删除文件
|
||||
|
||||
* `/api/file/removeFile`
|
||||
* 参数
|
||||
|
||||
```json
|
||||
{
|
||||
"path": "/data/20210808180117-6v0mkxr/20200923234011-ieuun1p.sy"
|
||||
}
|
||||
```
|
||||
* `path`:工作空间路径下的文件路径
|
||||
* 返回值
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"msg": "",
|
||||
"data": null
|
||||
}
|
||||
```
|
||||
|
||||
## 导出
|
||||
|
||||
### 导出 Markdown 文本
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue