]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: update openapi specification for /api/cluster/user/export 61893/head
authorLaimis Juzeliūnas <asnelaimis@gmail.com>
Wed, 19 Feb 2025 09:58:56 +0000 (11:58 +0200)
committerLaimis Juzeliūnas <asnelaimis@gmail.com>
Thu, 20 Feb 2025 22:45:35 +0000 (00:45 +0200)
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 <laimis.juzeliunas@oxylabs.io>
src/pybind/mgr/dashboard/controllers/ceph_users.py
src/pybind/mgr/dashboard/openapi.yaml

index 8bc47133bc783eb0d9c836c4ed5440efcc1fae7a..c956f1757e28f8c5a0cdfab1276ab593ffecb2fb 100644 (file)
@@ -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,
index dc2ccc370553d9b9ae75d610df10470967a97030..54914054b2c577baa022417ec3275269299dabf3 100644 (file)
@@ -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