Example for API

This commit is contained in:
2018-12-13 10:18:24 +09:00
parent b5c41cf6e7
commit cf4ad2b1cc
6 changed files with 151 additions and 19 deletions

23
src/API/APIUser.php Normal file
View 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 );
}
}