You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/src/docs/v1.api-spec.yaml
+18-8Lines changed: 18 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -199,10 +199,10 @@ paths:
199
199
summary: Deletes a bucket
200
200
description: >-
201
201
Deletes the bucket record (and child objects) from the COMS database, based on bucketId.
202
-
When calling this endpoint using OIDC token authentication, the user requires the DELETE
202
+
When calling this endpoint using OIDC token authentication, the user requires the `DELETE`
203
203
permission for the bucket.
204
-
Providing the 'recursive' parameter will also delete all sub-folders.
205
-
The recursive option also requires the OIDC user to have the DELETE permission
204
+
Providing the `recursive` parameter will also delete all sub-folders.
205
+
The `recursive` option also requires the OIDC user to have the `DELETE` permission
206
206
on all of these sub-folders otherwise the entire operation will fail.
207
207
This request does not dispatch an S3 operation to request the deletion of the associated
208
208
bucket(s) or delete any objects in object storage, it simply 'de-registers' knowledge of the bucket/folder
@@ -1137,12 +1137,15 @@ paths:
1137
1137
arbitrary array of permCode and user tuples. This is an idempotent
1138
1138
operation, so users that already have a requested permission will remain
1139
1139
unaffected. Only permissions successfully added to COMS will appear in
1140
-
the response.
1140
+
the response. The `recursive` option will also apply the specified
1141
+
permissions to all child buckets where the current user has `MANAGE`
1142
+
permissions.
1141
1143
operationId: bucketAddPermissions
1142
1144
tags:
1143
1145
- Permission
1144
1146
parameters:
1145
1147
- $ref: "#/components/parameters/Path-BucketId"
1148
+
- $ref: "#/components/parameters/Query-Recursive"
1146
1149
requestBody:
1147
1150
description: >-
1148
1151
An array of bucket permissions, each containing a `userId` and
@@ -1175,16 +1178,18 @@ paths:
1175
1178
of users and subset of permissions to revoke. This is an idempotent
1176
1179
operation, so users that already lack the specified permission(s) will
1177
1180
remain unaffected. Only permissions successfully removed from COMS will
1178
-
appear in the response. WARNING: Specifying no parameters will delete
1179
-
all permissions associated with a bucket; it is possible to lock
1180
-
yourself out of your own bucket!
1181
+
appear in the response. The `recursive` option will also remove the specified
1182
+
permissions from all child buckets where the current user has `MANAGE`
1183
+
permissions. WARNING: Specifying no parameters will delete all permissions
1184
+
associated with a bucket; it is possible to lock yourself out of your own bucket!
1181
1185
operationId: bucketRemovePermissions
1182
1186
tags:
1183
1187
- Permission
1184
1188
parameters:
1185
1189
- $ref: "#/components/parameters/Path-BucketId"
1186
1190
- $ref: "#/components/parameters/Query-UserId"
1187
1191
- $ref: "#/components/parameters/Query-PermCode"
1192
+
- $ref: "#/components/parameters/Query-Recursive"
1188
1193
responses:
1189
1194
"200":
1190
1195
description: Returns an array of deleted permissions
@@ -2583,6 +2588,11 @@ components:
2583
2588
`objectId` must be specified.
2584
2589
format: uuid
2585
2590
example: ac246e31-c807-496c-bc93-cd8bc2f1b2b4
2591
+
recursive:
2592
+
type: boolean
2593
+
description: >-
2594
+
Optionally apply permCodes to all sub-folders in the spcified bucket
2595
+
example: true
2586
2596
email:
2587
2597
type: string
2588
2598
description: >-
@@ -2609,7 +2619,7 @@ components:
2609
2619
type: array
2610
2620
items:
2611
2621
type: string
2612
-
description: Optional array of permCode. Defaults to 'READ', if unspecified. Accepts any of `"READ", "CREATE", "UPDATE"` for bucket or `"READ", "UPDATE"` for objects
2622
+
description: Optional array of permCode. Defaults to `READ`, if unspecified. Accepts any of `"READ", "CREATE", "UPDATE"` for bucket or `"READ", "UPDATE"` for objects
0 commit comments