Skip to content

Commit 58706ff

Browse files
feat(FreeRADIUSLDAP): add models, endpoints and tests for /api/v2/services/freeradius/ldap #21
1 parent 1173718 commit 58706ff

3 files changed

Lines changed: 772 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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 the singleton FreeRADIUSLDAP Model object at
11+
* /api/v2/services/freeradius/ldap
12+
*/
13+
class ServicesFreeRADIUSLDAPEndpoint extends Endpoint {
14+
public function __construct() {
15+
# Set Endpoint attributes
16+
$this->url = '/api/v2/services/freeradius/ldap';
17+
$this->model_name = 'FreeRADIUSLDAP';
18+
$this->request_method_options = ['GET', 'PATCH'];
19+
20+
# Construct the parent Endpoint object
21+
parent::__construct();
22+
}
23+
}

0 commit comments

Comments
 (0)