From 79e3329fdb3dad3d739f8e754f24fe93fdbeb89e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 27 Nov 2019 02:47:28 -0800 Subject: [PATCH] Updated Filer Server API (markdown) --- Filer-Server-API.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Filer-Server-API.md b/Filer-Server-API.md index dd689ea..b4fd08d 100644 --- a/Filer-Server-API.md +++ b/Filer-Server-API.md @@ -15,6 +15,12 @@ You can append to any HTTP API with &pretty=y to see a formatted json output. //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: ```bash