SeaweedFS接口-Filer Server API

You can append to any HTTP API with &pretty=y to see a formatted json output.

Filer server

POST/PUT/Get files

# Basic Usage:
    //create or overwrite the file, the directories /path/to will be automatically created
    POST /path/to/file
    //get the file content
    GET /path/to/file
    //create or overwrite the file, the filename in the multipart request will be used
    POST /path/to/
    //return a json format subdirectory and files listing
    GET /path/to/
        Accept: application/json
 
# options for POST a file:
    // set file TTL for Cassandra or Redis filer store.
    POST /path/to/file?ttl=1d
    // set file mode when creating or overwriting a file
    POST /path/to/file?mode=0755

Examples:

# Basic Usage:
> curl -F file=@report.js "http://localhost:8888/javascript/"
{"name":"report.js","size":866,"fid":"7,0254f1f3fd",
上一篇: SeaweedFS接口-Volume Server API
下一篇: unicorn 部署 FastAPI 应用程序
九品神元师
博客等级 码龄11年 415粉丝 177原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值