mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-22 14:42:23 +03:00
Added initial controller files for all API resources.
This commit is contained in:
parent
cf0cbaf75c
commit
f669f86294
8 changed files with 520 additions and 2 deletions
74
src/application/controllers/api/v1/Admins.php
Normal file
74
src/application/controllers/api/v1/Admins.php
Normal file
|
@ -0,0 +1,74 @@
|
|||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Easy!Appointments - Open Source Web Scheduler
|
||||
*
|
||||
* @package EasyAppointments
|
||||
* @author A.Tselegidis <alextselegidis@gmail.com>
|
||||
* @copyright Copyright (c) 2013 - 2016, Alex Tselegidis
|
||||
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
||||
* @link http://easyappointments.org
|
||||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
require_once __DIR__ . '/API_V1_Controller.php';
|
||||
|
||||
/**
|
||||
* Admins Controller
|
||||
*
|
||||
* @package Controllers
|
||||
* @subpackage API
|
||||
*/
|
||||
class Admins extends API_V1_Controller {
|
||||
/**
|
||||
* Class Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* GET API Method
|
||||
*
|
||||
* @param int $id Optional (null), the record ID to be returned.
|
||||
*
|
||||
* @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function get($id = null) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* POST API Method
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function post() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* PUT API Method
|
||||
*
|
||||
* @param int $id The record ID to be updated.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function put($id) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* DELETE API Method
|
||||
*
|
||||
* @param int $id The record ID to be deleted.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function delete($id) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* End of file Admins.php */
|
||||
/* Location: ./application/controllers/api/v1/Admins.php */
|
|
@ -70,5 +70,5 @@ class Appointments extends API_V1_Controller {
|
|||
}
|
||||
}
|
||||
|
||||
/* End of file appointments.php */
|
||||
/* Location: ./application/controllers/appointments.php */
|
||||
/* End of file Appointments.php */
|
||||
/* Location: ./application/controllers/api/v1/Appointments.php */
|
||||
|
|
74
src/application/controllers/api/v1/Categories.php
Normal file
74
src/application/controllers/api/v1/Categories.php
Normal file
|
@ -0,0 +1,74 @@
|
|||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Easy!Appointments - Open Source Web Scheduler
|
||||
*
|
||||
* @package EasyAppointments
|
||||
* @author A.Tselegidis <alextselegidis@gmail.com>
|
||||
* @copyright Copyright (c) 2013 - 2016, Alex Tselegidis
|
||||
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
||||
* @link http://easyappointments.org
|
||||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
require_once __DIR__ . '/API_V1_Controller.php';
|
||||
|
||||
/**
|
||||
* Categories Controller
|
||||
*
|
||||
* @package Controllers
|
||||
* @subpackage API
|
||||
*/
|
||||
class Categories extends API_V1_Controller {
|
||||
/**
|
||||
* Class Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* GET API Method
|
||||
*
|
||||
* @param int $id Optional (null), the record ID to be returned.
|
||||
*
|
||||
* @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function get($id = null) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* POST API Method
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function post() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* PUT API Method
|
||||
*
|
||||
* @param int $id The record ID to be updated.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function put($id) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* DELETE API Method
|
||||
*
|
||||
* @param int $id The record ID to be deleted.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function delete($id) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* End of file Categories.php */
|
||||
/* Location: ./application/controllers/api/v1/Categories.php */
|
74
src/application/controllers/api/v1/Customers.php
Normal file
74
src/application/controllers/api/v1/Customers.php
Normal file
|
@ -0,0 +1,74 @@
|
|||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Easy!Appointments - Open Source Web Scheduler
|
||||
*
|
||||
* @package EasyAppointments
|
||||
* @author A.Tselegidis <alextselegidis@gmail.com>
|
||||
* @copyright Copyright (c) 2013 - 2016, Alex Tselegidis
|
||||
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
||||
* @link http://easyappointments.org
|
||||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
require_once __DIR__ . '/API_V1_Controller.php';
|
||||
|
||||
/**
|
||||
* Customers Controller
|
||||
*
|
||||
* @package Controllers
|
||||
* @subpackage API
|
||||
*/
|
||||
class Customers extends API_V1_Controller {
|
||||
/**
|
||||
* Class Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* GET API Method
|
||||
*
|
||||
* @param int $id Optional (null), the record ID to be returned.
|
||||
*
|
||||
* @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function get($id = null) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* POST API Method
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function post() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* PUT API Method
|
||||
*
|
||||
* @param int $id The record ID to be updated.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function put($id) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* DELETE API Method
|
||||
*
|
||||
* @param int $id The record ID to be deleted.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function delete($id) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* End of file Customers.php */
|
||||
/* Location: ./application/controllers/api/v1/Customers.php */
|
74
src/application/controllers/api/v1/Providers.php
Normal file
74
src/application/controllers/api/v1/Providers.php
Normal file
|
@ -0,0 +1,74 @@
|
|||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Easy!Appointments - Open Source Web Scheduler
|
||||
*
|
||||
* @package EasyAppointments
|
||||
* @author A.Tselegidis <alextselegidis@gmail.com>
|
||||
* @copyright Copyright (c) 2013 - 2016, Alex Tselegidis
|
||||
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
||||
* @link http://easyappointments.org
|
||||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
require_once __DIR__ . '/API_V1_Controller.php';
|
||||
|
||||
/**
|
||||
* Providers Controller
|
||||
*
|
||||
* @package Controllers
|
||||
* @subpackage API
|
||||
*/
|
||||
class Providers extends API_V1_Controller {
|
||||
/**
|
||||
* Class Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* GET API Method
|
||||
*
|
||||
* @param int $id Optional (null), the record ID to be returned.
|
||||
*
|
||||
* @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function get($id = null) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* POST API Method
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function post() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* PUT API Method
|
||||
*
|
||||
* @param int $id The record ID to be updated.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function put($id) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* DELETE API Method
|
||||
*
|
||||
* @param int $id The record ID to be deleted.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function delete($id) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* End of file Providers.php */
|
||||
/* Location: ./application/controllers/api/v1/Providers.php */
|
74
src/application/controllers/api/v1/Secretaries.php
Normal file
74
src/application/controllers/api/v1/Secretaries.php
Normal file
|
@ -0,0 +1,74 @@
|
|||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Easy!Appointments - Open Source Web Scheduler
|
||||
*
|
||||
* @package EasyAppointments
|
||||
* @author A.Tselegidis <alextselegidis@gmail.com>
|
||||
* @copyright Copyright (c) 2013 - 2016, Alex Tselegidis
|
||||
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
||||
* @link http://easyappointments.org
|
||||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
require_once __DIR__ . '/API_V1_Controller.php';
|
||||
|
||||
/**
|
||||
* Secretaries Controller
|
||||
*
|
||||
* @package Controllers
|
||||
* @subpackage API
|
||||
*/
|
||||
class Secretaries extends API_V1_Controller {
|
||||
/**
|
||||
* Class Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* GET API Method
|
||||
*
|
||||
* @param int $id Optional (null), the record ID to be returned.
|
||||
*
|
||||
* @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function get($id = null) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* POST API Method
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function post() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* PUT API Method
|
||||
*
|
||||
* @param int $id The record ID to be updated.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function put($id) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* DELETE API Method
|
||||
*
|
||||
* @param int $id The record ID to be deleted.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function delete($id) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* End of file Secretaries.php */
|
||||
/* Location: ./application/controllers/api/v1/Secretaries.php */
|
74
src/application/controllers/api/v1/Services.php
Normal file
74
src/application/controllers/api/v1/Services.php
Normal file
|
@ -0,0 +1,74 @@
|
|||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Easy!Appointments - Open Source Web Scheduler
|
||||
*
|
||||
* @package EasyAppointments
|
||||
* @author A.Tselegidis <alextselegidis@gmail.com>
|
||||
* @copyright Copyright (c) 2013 - 2016, Alex Tselegidis
|
||||
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
||||
* @link http://easyappointments.org
|
||||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
require_once __DIR__ . '/API_V1_Controller.php';
|
||||
|
||||
/**
|
||||
* Services Controller
|
||||
*
|
||||
* @package Controllers
|
||||
* @subpackage API
|
||||
*/
|
||||
class Services extends API_V1_Controller {
|
||||
/**
|
||||
* Class Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* GET API Method
|
||||
*
|
||||
* @param int $id Optional (null), the record ID to be returned.
|
||||
*
|
||||
* @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function get($id = null) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* POST API Method
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function post() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* PUT API Method
|
||||
*
|
||||
* @param int $id The record ID to be updated.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function put($id) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* DELETE API Method
|
||||
*
|
||||
* @param int $id The record ID to be deleted.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function delete($id) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* End of file Services.php */
|
||||
/* Location: ./application/controllers/api/v1/Services.php */
|
74
src/application/controllers/api/v1/Settings.php
Normal file
74
src/application/controllers/api/v1/Settings.php
Normal file
|
@ -0,0 +1,74 @@
|
|||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Easy!Appointments - Open Source Web Scheduler
|
||||
*
|
||||
* @package EasyAppointments
|
||||
* @author A.Tselegidis <alextselegidis@gmail.com>
|
||||
* @copyright Copyright (c) 2013 - 2016, Alex Tselegidis
|
||||
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
||||
* @link http://easyappointments.org
|
||||
* @since v1.2.0
|
||||
* ---------------------------------------------------------------------------- */
|
||||
|
||||
require_once __DIR__ . '/API_V1_Controller.php';
|
||||
|
||||
/**
|
||||
* Settings Controller
|
||||
*
|
||||
* @package Controllers
|
||||
* @subpackage API
|
||||
*/
|
||||
class Settings extends API_V1_Controller {
|
||||
/**
|
||||
* Class Constructor
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
* GET API Method
|
||||
*
|
||||
* @param int $id Optional (null), the record ID to be returned.
|
||||
*
|
||||
* @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function get($id = null) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* POST API Method
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function post() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* PUT API Method
|
||||
*
|
||||
* @param int $id The record ID to be updated.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function put($id) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* DELETE API Method
|
||||
*
|
||||
* @param int $id The record ID to be deleted.
|
||||
*
|
||||
* @return @return \Engine\Api\V1\Response Returns data response.
|
||||
*/
|
||||
public function delete($id) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* End of file Settings.php */
|
||||
/* Location: ./application/controllers/api/v1/Settings.php */
|
Loading…
Reference in a new issue