admin API refactoring (step 1) #939

Merged
lx merged 19 commits from refactor-admin into next-v2 2025-01-29 20:42:57 +00:00
Showing only changes of commit 2daeb89834 - Show all commits

View file

@ -319,14 +319,6 @@ paths:
summary: "Clear staged layout" summary: "Clear staged layout"
description: | description: |
Clears all of the staged layout changes. Clears all of the staged layout changes.
requestBody:
description: |
Reverting the staged changes is done by incrementing the version number and clearing the contents of the staged change list. Similarly to the CLI, the body must include the incremented version number, which MUST be 1 + the value of the currently existing layout in the cluster.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LayoutVersion'
responses: responses:
'500': '500':
description: "The server can not handle your request. Check your connectivity with the rest of the cluster." description: "The server can not handle your request. Check your connectivity with the rest of the cluster."
@ -439,9 +431,9 @@ paths:
type: string type: string
default: "false" default: "false"
enum: enum:
- "true"
- "false" - "false"
example: "true" - "true"
example: "false"
required: false required: false
description: "Wether or not the secret key should be returned in the response" description: "Wether or not the secret key should be returned in the response"
responses: responses:
@ -837,7 +829,7 @@ paths:
/BucketAllowKey: /BucketAllowKey:
post: post:
tags: tags:
- Bucket - Permissions
operationId: "BucketAllowKey" operationId: "BucketAllowKey"
summary: "Allow key" summary: "Allow key"
description: | description: |
@ -897,7 +889,7 @@ paths:
/BucketDenyKey: /BucketDenyKey:
post: post:
tags: tags:
- Bucket - Permissions
operationId: "BucketDenyKey" operationId: "BucketDenyKey"
summary: "Deny key" summary: "Deny key"
description: | description: |
@ -957,7 +949,7 @@ paths:
/GlobalAliasBucket: /GlobalAliasBucket:
post: post:
tags: tags:
- Bucket - Bucket aliases
operationId: "GlobalAliasBucket" operationId: "GlobalAliasBucket"
summary: "Add a global alias" summary: "Add a global alias"
description: | description: |
@ -993,7 +985,7 @@ paths:
/GlobalUnaliasBucket: /GlobalUnaliasBucket:
post: post:
tags: tags:
- Bucket - Bucket aliases
operationId: "GlobalUnaliasBucket" operationId: "GlobalUnaliasBucket"
summary: "Delete a global alias" summary: "Delete a global alias"
description: | description: |
@ -1029,7 +1021,7 @@ paths:
/LocalAliasBucket: /LocalAliasBucket:
post: post:
tags: tags:
- Bucket - Bucket aliases
operationId: "LocalAliasBucket" operationId: "LocalAliasBucket"
summary: "Add a local alias" summary: "Add a local alias"
description: | description: |
@ -1068,7 +1060,7 @@ paths:
/LocalUnaliasBucket: /LocalUnaliasBucket:
post: post:
tags: tags:
- Bucket - Bucket aliases
operationId: "LocalUnaliasBucket" operationId: "LocalUnaliasBucket"
summary: "Delete a local alias" summary: "Delete a local alias"
description: | description: |