e64c043aaa
Removes [semver](https://github.com/npm/node-semver). It's no longer used after updating ancestor dependency [@google-cloud/storage](https://github.com/googleapis/nodejs-storage). These dependencies need to be updated together. Removes `semver` Updates `@google-cloud/storage` from 5.18.3 to 6.11.0 - [Release notes](https://github.com/googleapis/nodejs-storage/releases) - [Changelog](https://github.com/googleapis/nodejs-storage/blob/main/CHANGELOG.md) - [Commits](https://github.com/googleapis/nodejs-storage/compare/v5.18.3...v6.11.0) --- updated-dependencies: - dependency-name: semver dependency-type: indirect - dependency-name: "@google-cloud/storage" dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
.dockerignore | ||
.gitignore | ||
Dockerfile | ||
README.md | ||
cloudbuild.yaml | ||
index.js | ||
package-lock.json | ||
package.json |
README.md
Storage API
This application it is a RESTful API that let's you manage the Google Cloud Storage buckets available is a project. In order to do so the application needs to authenticate with a service account that has been granted the Storage Admin (roles/storage.admin
) role.
Find below the operations that can be performed using it:
-
Get buckets in project
curl -v http://localhost:3000/buckets
-
Get files in bucket
curl -v http://localhost:3000/buckets/BUCKET_NAME
-
Create a bucket
curl -v http://localhost:3000/buckets \ -H'Content-Type: application/json' \ -d @- <<EOF { "name": "BUCKET_NAME" } EOF
-
Delete bucket
curl -v -X DELETE http://localhost:3000/buckets/BUCKET_NAME