From c3c94806a7f074f9dc622f7a2c615652da2df5fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Laimis=20Juzeli=C5=ABnas?= Date: Wed, 19 Feb 2025 11:58:56 +0200 Subject: [PATCH] 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 --- src/pybind/mgr/dashboard/controllers/ceph_users.py | 5 ++++- src/pybind/mgr/dashboard/openapi.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/controllers/ceph_users.py b/src/pybind/mgr/dashboard/controllers/ceph_users.py index 8bc47133bc783..c956f1757e28f 100644 --- a/src/pybind/mgr/dashboard/controllers/ceph_users.py +++ b/src/pybind/mgr/dashboard/controllers/ceph_users.py @@ -217,7 +217,10 @@ edit_form = Form(path='/cluster/user/edit', extra_endpoints=[ ('export', CRUDCollectionMethod( func=RESTController.Collection('POST', 'export')(CephUserEndpoints.export), - doc=EndpointDoc("Export Ceph Users") + doc=EndpointDoc("Export Ceph Users", + parameters={ + "entities": Param([str], "List of entities to export") + }) )) ], selection_type=SelectionType.MULTI, diff --git a/src/pybind/mgr/dashboard/openapi.yaml b/src/pybind/mgr/dashboard/openapi.yaml index dc2ccc370553d..54914054b2c57 100644 --- a/src/pybind/mgr/dashboard/openapi.yaml +++ b/src/pybind/mgr/dashboard/openapi.yaml @@ -3883,7 +3883,10 @@ paths: schema: properties: entities: - type: string + description: List of entities to export + items: + type: string + type: array required: - entities type: object -- 2.47.3