From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id BA37772775 for ; Fri, 2 Jul 2021 11:40:41 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B032C2EC5D for ; Fri, 2 Jul 2021 11:40:41 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 3D1542EB0A for ; Fri, 2 Jul 2021 11:40:41 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 0807E404DF for ; Fri, 2 Jul 2021 11:40:41 +0200 (CEST) From: Fabian Ebner To: pve-devel@lists.proxmox.com Date: Fri, 2 Jul 2021 11:40:37 +0200 Message-Id: <20210702094037.38196-1-f.ebner@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.592 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [cluster.pm, backupinfo.pm] Subject: [pve-devel] [PATCH manager] api: backup info: prefer kebab-case X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2021 09:40:41 -0000 And also add the 'backup-info' endpoint to the index. Suggested-by: Thomas Lamprecht Signed-off-by: Fabian Ebner --- PVE/API2/BackupInfo.pm | 2 +- PVE/API2/Cluster.pm | 3 ++- www/manager6/dc/Backup.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/PVE/API2/BackupInfo.pm b/PVE/API2/BackupInfo.pm index 4c461e59..53a2ecfb 100644 --- a/PVE/API2/BackupInfo.pm +++ b/PVE/API2/BackupInfo.pm @@ -51,7 +51,7 @@ __PACKAGE__->register_method({ __PACKAGE__->register_method({ name => 'get_guests_not_in_backup', - path => 'not_backed_up', + path => 'not-backed-up', method => 'GET', protected => 1, description => "Shows all guests which are not covered by any backup job.", diff --git a/PVE/API2/Cluster.pm b/PVE/API2/Cluster.pm index 43dfa65f..2054ba76 100644 --- a/PVE/API2/Cluster.pm +++ b/PVE/API2/Cluster.pm @@ -66,7 +66,7 @@ __PACKAGE__->register_method ({ __PACKAGE__->register_method ({ subclass => "PVE::API2::BackupInfo", - path => 'backupinfo', + path => 'backup-info', }); __PACKAGE__->register_method ({ @@ -131,6 +131,7 @@ __PACKAGE__->register_method ({ { name => 'replication' }, { name => 'tasks' }, { name => 'backup' }, + { name => 'backup-info' }, { name => 'ha' }, { name => 'status' }, { name => 'nextid' }, diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js index 6be545ee..f06c25ff 100644 --- a/www/manager6/dc/Backup.js +++ b/www/manager6/dc/Backup.js @@ -797,7 +797,7 @@ Ext.define('PVE.dc.BackupView', { sorters: 'vmid', proxy: { type: 'proxmox', - url: 'api2/json/cluster/backupinfo/not_backed_up', + url: 'api2/json/cluster/backup-info/not-backed-up', }, }); -- 2.30.2