Repository files navigation
GET /oauth/authorize
参数
类型
备注
redirect_uri
String
重定向的地址
state
String
自定义数据,回调时会携带回来
POST /oauth/login
参数
类型
备注
code
String
重定向后自动携带的 Code
参数
类型
备注
token
String
登录后返回的 Token
POST /file/{id:\d+}
参数
类型
示例
备注
id
Integer
1
0为新增,>0为修改
path
String
/markdown/fs-server/README.md
文件路径
summary
String
这是一份 README 文件
描述
tags
Array
["Markdown", "文档"]
0为新增,>0为修改
file
File
无
需要备份的文件
POST /file/create-dir
参数
类型
示例
备注
path
String
/markdown/fs-server
文件夹路径
GET /file
参数
类型
示例
备注
dirname
String
/
文件目录
参数
类型
备注
count
Integer
当前目录下的文件总数
list
Array
文件列表
list.*.id
Integer
文件ID
list.*.path
String
文件路径
list.*.title
String
文件名
list.*.summary
String
文件描述
list.*.tags
Array
文件标签
list.*.version
Integer
文件版本
list.*.is_dir
Boolean
是否是文件夹
list.*.created_at
Datetime
创建时间
list.*.updated_at
Datetime
更新时间
GET /file/{id:\d+}
参数
类型
备注
id
Integer
文件ID
path
String
文件路径
title
String
文件名
summary
String
文件描述
tags
Array
文件标签
version
Integer
文件版本
is_dir
Boolean
是否是文件夹
created_at
Datetime
创建时间
updated_at
Datetime
更新时间
POST /file/download-url
参数
类型
示例
备注
ids
Array
[1,2,3]
文件ID 列表
参数
类型
备注
list
Array
list.*.id
Integer
文件ID
list.*.url
String
文件下载地址
About
文件共享系统服务端
Resources
License
Stars
Watchers
Forks
You can’t perform that action at this time.