From 62a8f27b998553e3ebce76a41e020a0b0008cf32 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 8 Nov 2017 09:42:58 +0100 Subject: [PATCH] JSONSchema.pm - add a 'download' attribute To mark methods which downloads file content to the client. --- src/PVE/JSONSchema.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 3295599..9c26184 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -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.", -- 2.39.2