]> git.proxmox.com Git - proxmox-backup.git/commitdiff
src/api2/config: improve api schema by adding return type
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 14 Jan 2020 13:55:58 +0000 (14:55 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 14 Jan 2020 13:55:58 +0000 (14:55 +0100)
src/api2/config/datastore.rs
src/api2/config/remotes.rs

index 2408a2b5e34ec7d747c56cff6c96265cb513ad1b..2ddf77ea9a75c17a6d1b8b79418c139bea20a3e7 100644 (file)
@@ -14,7 +14,7 @@ use crate::config::datastore;
         properties: {},
     },
     returns: {
-        description: "List the configured datastores.",
+        description: "List the configured datastores (with config digest).",
         type: Array,
         items: {
             type: datastore::DataStoreConfig,
@@ -83,6 +83,10 @@ pub fn create_datastore(name: String, param: Value) -> Result<(), Error> {
             },
         },
     },
+    returns: {
+        description: "The datastore configuration (with config digest).",
+        type: datastore::DataStoreConfig,
+    },
 )]
 /// Read a datastore configuration.
 pub fn read_datastore(name: String) -> Result<Value, Error> {
index 8ef6460e48f2d8e5d32ab80c4c539adb23ff9332..15a817c65798e67048a4d126bd4e1957d8b529b8 100644 (file)
@@ -11,7 +11,7 @@ use crate::config::remotes;
         properties: {},
     },
     returns: {
-        description: "The list of configured remotes.",
+        description: "The list of configured remotes (with config digest).",
         type: Array,
         items: {
             type: remotes::Remote,
@@ -81,6 +81,10 @@ pub fn create_remote(name: String, param: Value) -> Result<(), Error> {
             },
         },
     },
+    returns: {
+        description: "The remote configuration (with config digest).",
+        type: remotes::Remote,
+    },
 )]
 /// Read remote configuration data.
 pub fn read_remote(name: String) -> Result<Value, Error> {