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.
|
||||
|
||||
```
|
||||
// Object APIs
|
||||
// PutObject
|
||||
bucket.Methods("PUT").Path("/{object:.+}").HandlerFunc(s3a.PutObjectHandler)
|
||||
// GetObject
|
||||
bucket.Methods("GET").Path("/{object:.+}").HandlerFunc(s3a.GetObjectHandler)
|
||||
// HeadObject
|
||||
bucket.Methods("HEAD").Path("/{object:.+}").HandlerFunc(s3a.HeadObjectHandler)
|
||||
// DeleteObject
|
||||
bucket.Methods("DELETE").Path("/{object:.+}").HandlerFunc(s3a.DeleteObjectHandler)
|
||||
|
||||
// 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)
|
||||
|
||||
```
|
||||
* PutObject
|
||||
* GetObject
|
||||
* HeadObject
|
||||
* DeleteObject
|
||||
* ListObjectsV2
|
||||
* ListObjectsV1
|
||||
* PutBucket
|
||||
* DeleteBucket
|
||||
* HeadBucket
|
||||
* ListBuckets
|
||||
|
||||
TODO:
|
||||
* Add support to upload by multi partial uploads.
|
||||
|
|
Loading…
Reference in a new issue