Skip to content

Commit c3c9480

Browse files
committed
mgr/dashboard: update openapi specification for /api/cluster/user/export
This commit updates the openapi specification for /api/cluster/user/export endpoint to reflect the current api behaviour. Fixes: https://tracker.ceph.com/issues/70043 Signed-off-by: Laimis Juzeliunas <[email protected]>
1 parent 213b2d8 commit c3c9480

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/pybind/mgr/dashboard/controllers/ceph_users.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ def model(user_entity: str):
217217
extra_endpoints=[
218218
('export', CRUDCollectionMethod(
219219
func=RESTController.Collection('POST', 'export')(CephUserEndpoints.export),
220-
doc=EndpointDoc("Export Ceph Users")
220+
doc=EndpointDoc("Export Ceph Users",
221+
parameters={
222+
"entities": Param([str], "List of entities to export")
223+
})
221224
))
222225
],
223226
selection_type=SelectionType.MULTI,

src/pybind/mgr/dashboard/openapi.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3883,7 +3883,10 @@ paths:
38833883
schema:
38843884
properties:
38853885
entities:
3886-
type: string
3886+
description: List of entities to export
3887+
items:
3888+
type: string
3889+
type: array
38873890
required:
38883891
- entities
38893892
type: object

0 commit comments

Comments
 (0)