Example for API
This commit is contained in:
23
src/API/APIUser.php
Normal file
23
src/API/APIUser.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace WebProjectFitness\API;
|
||||
|
||||
class APIUser extends API {
|
||||
|
||||
private $declaredFunctions = [
|
||||
'insert' => [
|
||||
'method' => 'POST',
|
||||
'params' => [
|
||||
'name' => [
|
||||
'required' => true,
|
||||
'type' => 'string'
|
||||
]
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct( $this->declaredFunctions );
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user