From 0b63f333666e2bb8f18e7b0b4c4c58c67c3a11a7 Mon Sep 17 00:00:00 2001 From: guhan121 Date: Mon, 14 Dec 2020 18:17:09 +0800 Subject: [PATCH] Updated Filer Server API (markdown) --- Filer-Server-API.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Filer-Server-API.md b/Filer-Server-API.md index fd0b42f..474aad6 100644 --- a/Filer-Server-API.md +++ b/Filer-Server-API.md @@ -43,6 +43,7 @@ Examples: > 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 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"} > 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"