This commit is contained in:
qing committed 2026-07-21 10:10:06 +08:00
1 parent 0c3425b4c7
commit 6db8c9b413
10 files changed
+2046

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
# DNFS
这个项目叫做**树状网络文件系统(DNFS)**,是个HTTP服务。
它监听本地**8006**端口,访问者可以枚举、添加、删除、更新节点。
# 接口
```bash
# 获取某一层的节点列表
curl -X POST http://localhost:8006/get_notes -d '{"pid": <integer>}'
# 添加一个节点
curl -X POST http://localhost:8006/add_note -d '{"pid": <int>, "title": <str>, "content": <str>}'
# 删除一个节点
curl -X POST http://localhost:8006/delete_note -d '{"id": <int>}'
# 更新一个节点
curl -X POST http://localhost:8006/update_note -d '{"id": <int>, "pid": <int>, "title": <str>, "content": <str>}'
```