mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 07:52:29 +03:00
Added unavailabilities resource to the app.
This commit is contained in:
parent
0c1b504f56
commit
73c8728182
2 changed files with 75 additions and 0 deletions
|
@ -54,6 +54,7 @@ $route['404_override'] = 'errors/error404';
|
|||
|
||||
$resources = [
|
||||
'appointments',
|
||||
'unavailabilities',
|
||||
'customers',
|
||||
'services',
|
||||
'categories',
|
||||
|
|
74
src/application/controllers/api/v1/Unavailabilities.php
Normal file
74
src/application/controllers/api/v1/Unavailabilities.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';
|
||||
|
||||
/**
|
||||
* 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 */
|
Loading…
Reference in a new issue