2
0
mirror of https://github.com/opnsense/docs synced 2024-10-30 21:20:20 +00:00

update api endpoints

This commit is contained in:
Ad Schellevis 2023-03-28 08:58:44 +02:00
parent feb41d8d82
commit 4de4e97f44
3 changed files with 21 additions and 1 deletions

View File

@ -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

View File

@ -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"

View File

@ -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'"