aboutsummaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
authoryourchanges <yourchanges@gmail.com>2014-10-21 15:50:48 +0800
committeryourchanges <yourchanges@gmail.com>2014-10-21 15:50:48 +0800
commitf7bcd8e958ef185baeca0c455a397d49fcb62256 (patch)
treebb2a2de4fcb7f9ac7e1d65a78e82cbe1f5f17e36 /docs/api.rst
parent78ccbbf3d0766e1ececf91fa00766d1ed33050cc (diff)
parenta3c17f17b144c4298409fddda2d6bc4b39d38ca5 (diff)
downloadseaweedfs-f7bcd8e958ef185baeca0c455a397d49fcb62256.tar.xz
seaweedfs-f7bcd8e958ef185baeca0c455a397d49fcb62256.zip
Merge pull request #1 from chrislusf/master
update
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst13
1 files changed, 1 insertions, 12 deletions
diff --git a/docs/api.rst b/docs/api.rst
index 4f3806be9..f26408f5a 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -69,17 +69,6 @@ One volume servers one write a time. If you need to increase concurrency, you ca
This generates 4 empty volumes.
-Upload File Directly
-***********************************
-
-.. code-block:: bash
-
- curl -F file=@/home/chris/myphoto.jpg http://localhost:9333/submit
- {"fid":"3,01fbe0dc6f1f38","fileName":"myphoto.jpg",
- "fileUrl":"localhost:8080/3,01fbe0dc6f1f38","size":68231}
-
-This API is a little convenient. The master server would contact itself via HTTP to get an file id and store it to the right volume server. It is a convenient API and does not support different parameters when assigning file id.
-
Check System Status
***********************************
@@ -191,7 +180,7 @@ Upload File
curl -F file=@/home/chris/myphoto.jpg http://127.0.0.1:8080/3,01637037d6
{"size": 43234}
-The size returned is the size stored on WeedFS, sometimes the file is automatically gzipped based on the mime type.
+The size returned is the size stored on Seaweed-FS, sometimes the file is automatically gzipped based on the mime type.
Upload File Directly
***********************************