rahulxdd / aws-s3-clone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Env:- local: http://localhost:9000/

.env ::::::
PORT =
LOCAL_MONGO_DB =

APIS ---------------------------------------------------------------->

Buckets:------------------------>
1- Add Bucket
Tyep- POST
Api- {{local}}api/buckets
body:- JSON body
data - {
"bucketName":"secound-bucket"
}

2- Get Bucket
Type- GET
Api- {{local}}api/buckets

Files:------------------------>
1- Upload File/Files
Tyep- POST
Api- {{local}}api/buckets/:id/uploads
params:- id of the bucket
body:- form-data
file - contains files

2- Get Bucket Files
Type- GET
Api- {{local}}api/buckets/:id/uploads
params:- id of the bucket

3- Get Bucket Files Detail
Type- GET
Api- {{local}}api/buckets/:id/uploads/:fileId
params:- id of the bucket and fileId is id of the file

4- Update Bucket Files
Type- PUT
Api- {{local}}api/buckets/:id/uploads/:fileId
params:- id of the bucket and fileId is id of the file
body:- form-data
file - contains single file to update

5- Remove Bucket Files
Type- DELETE
Api- {{local}}api/buckets/:id/uploads/:fileId
params:- id of the bucket and fileId is id of the file

About


Languages

Language:JavaScript 100.0%