Skip to content

Commit 107f451

Browse files
Merge pull request #703 from vitspec99/OpenVPNClientExport
Basic API to OpenVPN Client Export Utility. Initial commit.
2 parents 8556c83 + a550781 commit 107f451

2 files changed

Lines changed: 628 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace RESTAPI\Endpoints;
4+
5+
require_once 'RESTAPI/autoloader.inc';
6+
7+
use RESTAPI\Core\Endpoint;
8+
9+
/**
10+
* Defines an Endpoint for interacting with a single OpenVPNExport Model object at
11+
* /api/v2/vpn/openvpn/clientexport.
12+
*/
13+
class VPNOpenVPNClientExportEndpoint extends Endpoint {
14+
public function __construct() {
15+
# Set Endpoint attributes
16+
$this->url = '/api/v2/vpn/openvpn/clientexport';
17+
$this->model_name = 'OpenVPNClientExport';
18+
$this->request_method_options = [ 'POST' ];
19+
$this->many = false;
20+
21+
# Construct the parent Endpoint object
22+
parent::__construct();
23+
}
24+
}

0 commit comments

Comments
 (0)