mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated Filer Server API (markdown)
parent
108ac4ae37
commit
0b63f33366
|
@ -43,6 +43,7 @@ Examples:
|
||||||
> curl "http://localhost:8888/javascript/report.js" # get the file content
|
> curl "http://localhost:8888/javascript/report.js" # get the file content
|
||||||
...
|
...
|
||||||
> curl -F file=@report.js "http://localhost:8888/javascript/new_name.js" # upload the file with a different name (The local report.js becomes new_name.js on the server side.)
|
> curl -F file=@report.js "http://localhost:8888/javascript/new_name.js" # upload the file with a different name (The local report.js becomes new_name.js on the server side.)
|
||||||
|
> curl http://localhost:8888/test.yaml --upload-file test.yaml # upload file by PUT
|
||||||
{"name":"report.js","size":866,"fid":"3,034389657e","url":"http://localhost:8081/3,034389657e"}
|
{"name":"report.js","size":866,"fid":"3,034389657e","url":"http://localhost:8081/3,034389657e"}
|
||||||
> curl -H "Accept: application/json" "http://localhost:8888/javascript/?pretty=y" # list all files under /javascript/
|
> curl -H "Accept: application/json" "http://localhost:8888/javascript/?pretty=y" # list all files under /javascript/
|
||||||
curl -H "Accept: application/json" "http://localhost:8888/javascript/?pretty=y"
|
curl -H "Accept: application/json" "http://localhost:8888/javascript/?pretty=y"
|
||||||
|
|
Loading…
Reference in a new issue