]> git.proxmox.com Git - pve-common.git/commitdiff
JSONSchema.pm - add a 'download' attribute
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 8 Nov 2017 08:42:58 +0000 (09:42 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 8 Nov 2017 08:42:58 +0000 (09:42 +0100)
To mark methods which downloads file content to the client.

src/PVE/JSONSchema.pm

index 329559948c6f3c4019121f425869494ea852c0b9..9c261841f4043203728d9d4a4035115b61d7ee01 100644 (file)
@@ -1154,6 +1154,11 @@ my $method_schema = {
            description => "Method needs special privileges - only pvedaemon can execute it",            
            optional => 1,
         },
+        download => {
+            type => 'boolean',
+           description => "Method downloads the file content (filename is the return value of the method).",
+           optional => 1,
+        },
        proxyto => {
            type =>  'string',
            description => "A parameter name. If specified, all calls to this method are proxied to the host contained in that parameter.",