From 73c8728182d64c2c11ef3d881056a63eedf5ee5f Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Sat, 9 Jul 2016 07:47:01 +0200 Subject: [PATCH] Added unavailabilities resource to the app. --- src/application/config/routes.php | 1 + .../controllers/api/v1/Unavailabilities.php | 74 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 src/application/controllers/api/v1/Unavailabilities.php diff --git a/src/application/config/routes.php b/src/application/config/routes.php index fccecffa..e5a76aed 100644 --- a/src/application/config/routes.php +++ b/src/application/config/routes.php @@ -54,6 +54,7 @@ $route['404_override'] = 'errors/error404'; $resources = [ 'appointments', + 'unavailabilities', 'customers', 'services', 'categories', diff --git a/src/application/controllers/api/v1/Unavailabilities.php b/src/application/controllers/api/v1/Unavailabilities.php new file mode 100644 index 00000000..7288cd05 --- /dev/null +++ b/src/application/controllers/api/v1/Unavailabilities.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'; + +/** + * Unavailabilities Controller + * + * @package Controllers + * @subpackage API + */ +class Unavailabilities 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 \EA\Engine\Api\V1\Response Returns data response. + */ + public function get($id = null) { + + } + + /** + * POST API Method + * + * @return @return \EA\Engine\Api\V1\Response Returns data response. + */ + public function post() { + + } + + /** + * PUT API Method + * + * @param int $id The record ID to be updated. + * + * @return @return \EA\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 \EA\Engine\Api\V1\Response Returns data response. + */ + public function delete($id) { + + } +} + +/* End of file Unavailabilities.php */ +/* Location: ./application/controllers/api/v1/Unavailabilities.php */