mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated Filer Server API (markdown)
parent
fca46041fb
commit
c91ada0539
|
@ -104,6 +104,30 @@ curl -H "Accept: application/json" "http://localhost:8888/javascript/?pretty=y"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### PUT/DELETE file tagging
|
||||||
|
|
||||||
|
```
|
||||||
|
# put 2 pairs of meta data
|
||||||
|
curl -X PUT -H "Seaweed-Name1: value1" -H "Seaweed-some: some string value" http://localhost:8888/path/to/a/file?tagging
|
||||||
|
|
||||||
|
# read the meta data from HEAD request
|
||||||
|
curl -I "http://localhost:8888/path/to/a/file"
|
||||||
|
...
|
||||||
|
Seaweed-Name1: value1
|
||||||
|
Seaweed-Some: some string value
|
||||||
|
...
|
||||||
|
|
||||||
|
# delete all "Seaweed-" prefixed meta data
|
||||||
|
curl -X DELETE http://localhost:8888/path/to/a/file?tagging
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
| Method | Request | Header | Operation |
|
||||||
|
| ---- | ---- | -- | -- |
|
||||||
|
| PUT | <file_url>?tagging | Prefixed with "Seaweed-" | set the meta data |
|
||||||
|
| DELETE | <file_url>?tagging | | remove all the "Seaweed-" prefixed header |
|
||||||
|
|
||||||
|
|
||||||
### Create an empty folder
|
### Create an empty folder
|
||||||
|
|
||||||
Folders usually are created automatically when uploading a file. To create an empty file, you can use this:
|
Folders usually are created automatically when uploading a file. To create an empty file, you can use this:
|
||||||
|
|
Loading…
Reference in a new issue