Updated Filer Server API (markdown)

harry huang 2022-03-07 15:54:40 +08:00
parent 1e5acbece6
commit 66ae6b198d

@ -42,7 +42,8 @@ You can append to any HTTP API with &pretty=y to see a formatted json output.
| GET Parameter | Description | Default |
| ---- | -- | -- |
| metadata| get file metadata | empty |
| metadata | get file metadata | false |
| resolveManifest | resolve manifest chunks | false |
### notice
* It is recommended to add retries when writing to Filer.
* `AutoChunking` is not supported for method `PUT`. If the file length is greater than 256MB, only the leading 256MB in the `PUT` request will be saved.
@ -122,7 +123,7 @@ Examples:
"ShouldDisplayLoadMore": false
}
# get file metadata
> curl 'http://localhost:8888/test01.py?metadata&pretty=yes'
> curl 'http://localhost:8888/test01.py?metadata=true&pretty=yes'
{
"FullPath": "/test01.py",
"Mtime": "2022-01-09T19:11:18+08:00",