get : /api/ownfile_list
参数:page
返回格式: json
返回值:
{
‘total_item’: total,
‘ownfiledata’: [
{‘name’: ownfile.name,
‘created_at’: strftime(‘%Y-%m-%d’, time.localtime(ownfile.created_at)),
‘remote_filename’: ownfile.remote_filename}
for ownfile in ownfiles
]
}
实现:python 直接从blog的python文件中抄
get:/fileapi/delete
参数:remote_filename
返回值 无
实现 c++
post:/fileapi/upload
参数:formData
———WebKitFormBoundaryRwcmYZBL4LHYRd4u Content-Disposition: form-data; name=”upload_token” 00158252206206917be796a3261426cb4e6ded7f46b3da0000-1612572576-5d6cbc9889429c1073db730fa6b31fa2ecfc2ef0
———WebKitFormBoundaryRwcmYZBL4LHYRd4u Content-Disposition: form-data; name=”file”; filename=”pat证书查验.png”
Content-Type: image/png
**二进制文件
———WebKitFormBoundaryRwcmYZBL4LHYRd4u—
返回值:text/html 返回文件remote_filename
实现:c++
get /api/share
参数: filename,remote_filename
返回值:html页面,直接跳转到后台(已登录),主页并提示登录(未登录)
实现: python
get /api/chenckexist
参数: filename,sha1值
返回值:text/html 返回文件remote_filname,若不存在,返回400
实现:python
