$("#grid-clients").UIBootgrid( { 'search':'/api/wireguard/client/searchClient', 'get':'/api/wireguard/client/getClient/', 'set':'/api/wireguard/client/setClient/', 'add':'/api/wireguard/client/addClient/', 'del':'/api/wireguard/client/delClient/', 'toggle':'/api/wireguard/client/toggleClient/' } );
curl -s -k -u $KEY:$SECRET https://$HOST/api/wireguard/client/get
{"client":{"clients":{"client":{"aaaaaaaa-aaaa-aaaa-aaaaaaaaaaaaaaaaa":"enabled":"1","name":"Test","pubkey":"asdasdasdasdasdasdasdasdasdasdsa","psk":"","tunneladdress":"192.168.2.2\/24":"value":"192.168.2.2\/24","selected":1}},"serveraddress":"","serverport":"","keepalive":""}}}}}
curl -X port -d '' -k -u $KEY:$SECRET https://$HOST/api/wireguard/client/addClient
curl -X POST -d '{"client":{"enabled":"1","name":"Test","pubkey":"asdasdasdasdasdasdasdasdasdasdsa","psk":"","tunneladdress":"192.168.2.2\/24":"value":"192.168.2.2\/24","selected":1}},"serveraddress":"","serverport":"","keepalive":""}}}' \ -H "Content-Type: application/json" -k -u $KEY:$SECRET https://opnsense.fung.us/api/wireguard/client/addClient
{"result":"failed"}