mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated Amazon S3 API (markdown)
parent
9d5ace87c5
commit
e25aefb1cd
|
@ -8,29 +8,16 @@ A bucket can be deleted efficiently by deleting the whole collection.
|
||||||
|
|
||||||
Currently, the following APIs are supported.
|
Currently, the following APIs are supported.
|
||||||
|
|
||||||
```
|
* PutObject
|
||||||
// Object APIs
|
* GetObject
|
||||||
// PutObject
|
* HeadObject
|
||||||
bucket.Methods("PUT").Path("/{object:.+}").HandlerFunc(s3a.PutObjectHandler)
|
* DeleteObject
|
||||||
// GetObject
|
* ListObjectsV2
|
||||||
bucket.Methods("GET").Path("/{object:.+}").HandlerFunc(s3a.GetObjectHandler)
|
* ListObjectsV1
|
||||||
// HeadObject
|
* PutBucket
|
||||||
bucket.Methods("HEAD").Path("/{object:.+}").HandlerFunc(s3a.HeadObjectHandler)
|
* DeleteBucket
|
||||||
// DeleteObject
|
* HeadBucket
|
||||||
bucket.Methods("DELETE").Path("/{object:.+}").HandlerFunc(s3a.DeleteObjectHandler)
|
* ListBuckets
|
||||||
|
|
||||||
// Bucket APIs
|
|
||||||
// PutBucket
|
|
||||||
bucket.Methods("PUT").HandlerFunc(s3a.PutBucketHandler)
|
|
||||||
// DeleteBucket
|
|
||||||
bucket.Methods("DELETE").HandlerFunc(s3a.DeleteBucketHandler)
|
|
||||||
// HeadBucket
|
|
||||||
bucket.Methods("HEAD").HandlerFunc(s3a.HeadBucketHandler)
|
|
||||||
|
|
||||||
// ListBuckets
|
|
||||||
apiRouter.Methods("GET").Path("/").HandlerFunc(s3a.ListBucketsHandler)
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
* Add support to upload by multi partial uploads.
|
* Add support to upload by multi partial uploads.
|
||||||
|
|
Loading…
Reference in a new issue