Files
blackbird/dnfs
2026-07-24 07:05:46 +08:00
..
2026-07-21 11:29:32 +08:00
dnf
2026-07-21 10:10:06 +08:00
2026-07-24 07:05:46 +08:00
2026-07-22 10:13:10 +08:00
2026-07-23 09:20:04 +08:00
2026-07-22 16:39:15 +08:00
2026-07-24 06:15:14 +08:00
dnf
2026-07-21 10:10:06 +08:00
2026-07-22 10:13:10 +08:00

DNFS

这个项目叫做树状网络文件系统(DNFS),是个HTTP服务。

它监听本地8006端口,访问者可以枚举、添加、删除、更新节点。

接口

# 获取某一层的节点列表
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>}'