[PR #34] [MERGED] Support creating a bucket with POST /storage/v1/b #286

Closed
opened 2026-03-03 12:10:05 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fsouza/fake-gcs-server/pull/34
Author: @jwhitlock
Created: 5/31/2019
Status: Merged
Merged: 5/31/2019
Merged by: @fsouza

Base: masterHead: create-bucket-by-post


📝 Commits (1)

  • 6a18602 Support creating a bucket with POST /b

📊 Changes

3 files changed (+47 additions, -0 deletions)

View changed files

📝 fakestorage/bucket.go (+28 -0)
📝 fakestorage/bucket_test.go (+18 -0)
📝 fakestorage/server.go (+1 -0)

📄 Description

This implements a handler for a POST to /storage/v1/b, which creates a bucket by name.

I had a similar issue as reported in https://github.com/fsouza/fake-gcs-server/issues/24#issuecomment-477888602, that I expected to be able to use the client library to create buckets.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fsouza/fake-gcs-server/pull/34 **Author:** [@jwhitlock](https://github.com/jwhitlock) **Created:** 5/31/2019 **Status:** ✅ Merged **Merged:** 5/31/2019 **Merged by:** [@fsouza](https://github.com/fsouza) **Base:** `master` ← **Head:** `create-bucket-by-post` --- ### 📝 Commits (1) - [`6a18602`](https://github.com/fsouza/fake-gcs-server/commit/6a18602b15014501f0f83096ec46b38e2b059047) Support creating a bucket with POST /b ### 📊 Changes **3 files changed** (+47 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `fakestorage/bucket.go` (+28 -0) 📝 `fakestorage/bucket_test.go` (+18 -0) 📝 `fakestorage/server.go` (+1 -0) </details> ### 📄 Description This implements a handler for a ``POST`` to ``/storage/v1/b``, which creates a bucket by name. I had a similar issue as reported in https://github.com/fsouza/fake-gcs-server/issues/24#issuecomment-477888602, that I expected to be able to use the client library to create buckets. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 12:10:05 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#286
No description provided.