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 */