From b5a0d6fe10be1ea25df728bbdc2cb7cc97dd3ee2 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 20 Nov 2023 10:51:24 +0100 Subject: [PATCH] update api endpoints --- source/development/api/core/core.rst | 11 +++++++++++ source/development/api/core/diagnostics.rst | 1 + source/development/api/plugins/wireguard.rst | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/source/development/api/core/core.rst b/source/development/api/core/core.rst index 54f763d..22d700b 100644 --- a/source/development/api/core/core.rst +++ b/source/development/api/core/core.rst @@ -1,6 +1,17 @@ Core ~~~~ +.. csv-table:: Resources (BackupController.php) + :header: "Method", "Module", "Controller", "Command", "Parameters" + :widths: 4, 15, 15, 30, 40 + + "``GET``","core","backup","backups","$host" + "``GET``","core","backup","deleteBackup","$backup" + "``GET``","core","backup","diff","$host,$backup1,$backup2" + "``GET``","core","backup","download","$host,$backup=null" + "``GET``","core","backup","providers","" + "``GET``","core","backup","revertBackup","$backup" + .. csv-table:: Resources (MenuController.php) :header: "Method", "Module", "Controller", "Command", "Parameters" :widths: 4, 15, 15, 30, 40 diff --git a/source/development/api/core/diagnostics.rst b/source/development/api/core/diagnostics.rst index 7c1b4d7..2951c3a 100644 --- a/source/development/api/core/diagnostics.rst +++ b/source/development/api/core/diagnostics.rst @@ -149,6 +149,7 @@ Diagnostics "``GET``","diagnostics","systemhealth","getInterfaces","" "``GET``","diagnostics","systemhealth","getRRDlist","" + "``GET``","diagnostics","systemhealth","getSystemHealth","$rrd="""",$inverse=0,$detail=-1" .. csv-table:: Service (TracerouteController.php) :header: "Method", "Module", "Controller", "Command", "Parameters" diff --git a/source/development/api/plugins/wireguard.rst b/source/development/api/plugins/wireguard.rst index 935ad1c..54d8638 100644 --- a/source/development/api/plugins/wireguard.rst +++ b/source/development/api/plugins/wireguard.rst @@ -59,7 +59,7 @@ Wireguard :header: "Method", "Module", "Controller", "Command", "Parameters" :widths: 4, 15, 15, 30, 40 - "``POST``","wireguard","client","addClient","" + "``GET``","wireguard","client","addClient","" "``POST``","wireguard","client","delClient","$uuid" "``GET``","wireguard","client","get","" "``GET``","wireguard","client","getClient","$uuid=null"