Skip to content

Commit a5972ea

Browse files
feat(FreeRADIUSEAP): add models, endpoints and tests for /api/v2/services/freeradius/eap #21
1 parent e84d0de commit a5972ea

3 files changed

Lines changed: 778 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 FreeRADIUSEAP Model object at
11+
* /api/v2/services/freeradius/eap
12+
*/
13+
class ServicesFreeRADIUSEAPEndpoint extends Endpoint {
14+
public function __construct() {
15+
# Set Endpoint attributes
16+
$this->url = '/api/v2/services/freeradius/eap';
17+
$this->model_name = 'FreeRADIUSEAP';
18+
$this->request_method_options = ['GET', 'PATCH'];
19+
20+
# Construct the parent Endpoint object
21+
parent::__construct();
22+
}
23+
}

0 commit comments

Comments
 (0)