[pve-devel] [PATCH docs 2/2] include allowtoken info in api-viewer

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Jan 30 13:54:01 CET 2020


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 api-viewer/PVEAPI.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/api-viewer/PVEAPI.js b/api-viewer/PVEAPI.js
index 2416161..53bc36c 100644
--- a/api-viewer/PVEAPI.js
+++ b/api-viewer/PVEAPI.js
@@ -354,6 +354,9 @@ Ext.onReady(function() {
 			permhtml += "Unknown systax!";
 		    }
 		}
+		if (!info.allowtoken) {
+		    permhtml += "<br />This API endpoint is not available for API tokens."
+		}
 
 		sections.push({
 		    title: 'Required permissions',
-- 
2.20.1





More information about the pve-devel mailing list