From 4de4e97f4487868c64d8b8b702c49b43f21d18d5 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 28 Mar 2023 08:58:44 +0200 Subject: [PATCH] update api endpoints --- source/development/api/core/core.rst | 9 +++++++++ source/development/api/core/openvpn.rst | 11 +++++++++++ source/development/api/plugins/backup.rst | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/source/development/api/core/core.rst b/source/development/api/core/core.rst index 08461db..283ebc1 100644 --- a/source/development/api/core/core.rst +++ b/source/development/api/core/core.rst @@ -8,6 +8,15 @@ Core "``GET``","core","menu","search","" "``GET``","core","menu","tree","" +.. csv-table:: Service (ServiceController.php) + :header: "Method", "Module", "Controller", "Command", "Parameters" + :widths: 4, 15, 15, 30, 40 + + "``POST``","core","service","restart","$name,$id=''" + "``GET``","core","service","search","" + "``POST``","core","service","start","$name,$id=''" + "``POST``","core","service","stop","$name,$id=''" + .. csv-table:: Resources (SystemController.php) :header: "Method", "Module", "Controller", "Command", "Parameters" :widths: 4, 15, 15, 30, 40 diff --git a/source/development/api/core/openvpn.rst b/source/development/api/core/openvpn.rst index 61a30dd..b0844a2 100644 --- a/source/development/api/core/openvpn.rst +++ b/source/development/api/core/openvpn.rst @@ -11,3 +11,14 @@ Openvpn "``POST``","openvpn","export","storePresets","$vpnid" "``GET``","openvpn","export","templates","" "``POST``","openvpn","export","validatePresets","$vpnid" + +.. csv-table:: Service (ServiceController.php) + :header: "Method", "Module", "Controller", "Command", "Parameters" + :widths: 4, 15, 15, 30, 40 + + "``POST``","openvpn","service","killSession","" + "``POST``","openvpn","service","restartService","$id=null" + "``GET``","openvpn","service","searchRoutes","" + "``GET``","openvpn","service","searchSessions","" + "``POST``","openvpn","service","startService","$id=null" + "``POST``","openvpn","service","stopService","$id=null" diff --git a/source/development/api/plugins/backup.rst b/source/development/api/plugins/backup.rst index fec6424..7a1c467 100644 --- a/source/development/api/plugins/backup.rst +++ b/source/development/api/plugins/backup.rst @@ -5,4 +5,4 @@ Backup :header: "Method", "Module", "Controller", "Command", "Parameters" :widths: 4, 15, 15, 30, 40 - "``GET``","backup","backup","download","" + "``GET``","backup","backup","download","$format='plain'"