Open VictoriqueMoe opened 3 weeks ago
There have been a number of API changes to support buckets. you can refer to this PR: https://github.com/waifuvault/waifuVault-node-api/pull/15
Buckets are temprry virtual buckets that are managed with a single token
here are the outline of the changes:
/uploadFile/{token}
createBucket
GET
/rest/bucket/create
deleteBucket
DELETE
/rest/bucket/${bucketToken}
getBucket
POST
/rest/bucket/get
{ "bucket_token": "bucketToken" }
the response of the get is an object with the shape of
"token": "string", "files": FileResponseObject[]
where FileResponseObject is whatever type you have defined in the response of getFileInfo.
FileResponseObject
getFileInfo
you can see the new api docs and the schemeas here: https://waifuvault.moe/api-docs
There have been a number of API changes to support buckets. you can refer to this PR: https://github.com/waifuvault/waifuVault-node-api/pull/15
Buckets are temprry virtual buckets that are managed with a single token
here are the outline of the changes:
/uploadFile/{token}
this is the bucket tokencreateBucket
endpoint that is aGET
and takes no body (buckets are created once per IP). the endpoint is/rest/bucket/create
deleteBucket
endpoint aDELETE
takes the bucxket token as a path param. the endpoint is/rest/bucket/${bucketToken}
getBucket
endpoint, aPOST
to/rest/bucket/get
that takes the the body of:the response of the get is an object with the shape of
where
FileResponseObject
is whatever type you have defined in the response ofgetFileInfo
.