Added initial controller files for all API resources.

This commit is contained in:
Alex Tselegidis 2016-07-08 21:23:03 +02:00
parent cf0cbaf75c
commit f669f86294
8 changed files with 520 additions and 2 deletions

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

View File

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

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

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

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

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

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

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