From f669f86294dffba02edf0d0d061918c0d80000c9 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 8 Jul 2016 21:23:03 +0200 Subject: [PATCH] Added initial controller files for all API resources. --- src/application/controllers/api/v1/Admins.php | 74 +++++++++++++++++++ .../controllers/api/v1/Appointments.php | 4 +- .../controllers/api/v1/Categories.php | 74 +++++++++++++++++++ .../controllers/api/v1/Customers.php | 74 +++++++++++++++++++ .../controllers/api/v1/Providers.php | 74 +++++++++++++++++++ .../controllers/api/v1/Secretaries.php | 74 +++++++++++++++++++ .../controllers/api/v1/Services.php | 74 +++++++++++++++++++ .../controllers/api/v1/Settings.php | 74 +++++++++++++++++++ 8 files changed, 520 insertions(+), 2 deletions(-) create mode 100644 src/application/controllers/api/v1/Admins.php create mode 100644 src/application/controllers/api/v1/Categories.php create mode 100644 src/application/controllers/api/v1/Customers.php create mode 100644 src/application/controllers/api/v1/Providers.php create mode 100644 src/application/controllers/api/v1/Secretaries.php create mode 100644 src/application/controllers/api/v1/Services.php create mode 100644 src/application/controllers/api/v1/Settings.php diff --git a/src/application/controllers/api/v1/Admins.php b/src/application/controllers/api/v1/Admins.php new file mode 100644 index 00000000..6469739e --- /dev/null +++ b/src/application/controllers/api/v1/Admins.php @@ -0,0 +1,74 @@ + + * @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 */ diff --git a/src/application/controllers/api/v1/Appointments.php b/src/application/controllers/api/v1/Appointments.php index 9a584c3a..325c0af9 100644 --- a/src/application/controllers/api/v1/Appointments.php +++ b/src/application/controllers/api/v1/Appointments.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 */ diff --git a/src/application/controllers/api/v1/Categories.php b/src/application/controllers/api/v1/Categories.php new file mode 100644 index 00000000..a24988e5 --- /dev/null +++ b/src/application/controllers/api/v1/Categories.php @@ -0,0 +1,74 @@ + + * @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 */ diff --git a/src/application/controllers/api/v1/Customers.php b/src/application/controllers/api/v1/Customers.php new file mode 100644 index 00000000..fa573d1a --- /dev/null +++ b/src/application/controllers/api/v1/Customers.php @@ -0,0 +1,74 @@ + + * @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 */ diff --git a/src/application/controllers/api/v1/Providers.php b/src/application/controllers/api/v1/Providers.php new file mode 100644 index 00000000..632212d3 --- /dev/null +++ b/src/application/controllers/api/v1/Providers.php @@ -0,0 +1,74 @@ + + * @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 */ diff --git a/src/application/controllers/api/v1/Secretaries.php b/src/application/controllers/api/v1/Secretaries.php new file mode 100644 index 00000000..ac822d59 --- /dev/null +++ b/src/application/controllers/api/v1/Secretaries.php @@ -0,0 +1,74 @@ + + * @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 */ diff --git a/src/application/controllers/api/v1/Services.php b/src/application/controllers/api/v1/Services.php new file mode 100644 index 00000000..eda39ee6 --- /dev/null +++ b/src/application/controllers/api/v1/Services.php @@ -0,0 +1,74 @@ + + * @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 */ diff --git a/src/application/controllers/api/v1/Settings.php b/src/application/controllers/api/v1/Settings.php new file mode 100644 index 00000000..12629c0a --- /dev/null +++ b/src/application/controllers/api/v1/Settings.php @@ -0,0 +1,74 @@ + + * @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 */