fix(api): use query params, not path params for Update & Delete Bucket

This commit is contained in:
Milas Bowman
2025-08-23 13:02:03 -04:00
parent 17c73bafa2
commit 4deb57815a
2 changed files with 7 additions and 8 deletions
+5 -2
View File
@@ -891,9 +891,11 @@ pub struct CreateBucketLocalAlias {
// ---- UpdateBucket ----
#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize, IntoParams)]
#[into_params(parameter_in = Query)]
pub struct UpdateBucketRequest {
pub id: String,
#[param(ignore = true)]
pub body: UpdateBucketRequestBody,
}
@@ -917,7 +919,8 @@ pub struct UpdateBucketWebsiteAccess {
// ---- DeleteBucket ----
#[derive(Debug, Clone, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize, IntoParams)]
#[into_params(parameter_in = Query)]
pub struct DeleteBucketRequest {
pub id: String,
}