Merge remote-tracking branch 'upstream/develop' into develop
This commit is contained in:
commit
26d909a19b
18 changed files with 233 additions and 166 deletions
|
@ -37,7 +37,7 @@ class Admins_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Get an admin collection.
|
* Get an admin collection.
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$keyword = $this->api->request_keyword();
|
$keyword = $this->api->request_keyword();
|
||||||
|
@ -79,9 +79,17 @@ class Admins_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int|null $id Admin ID.
|
* @param int|null $id Admin ID.
|
||||||
*/
|
*/
|
||||||
public function show(int $id = null)
|
public function show(int $id = null): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$occurrences = $this->admins_model->get(['id' => $id]);
|
||||||
|
|
||||||
|
if (empty($occurrences)) {
|
||||||
|
response('', 404);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$fields = $this->api->request_fields();
|
$fields = $this->api->request_fields();
|
||||||
|
|
||||||
$with = $this->api->request_with();
|
$with = $this->api->request_with();
|
||||||
|
@ -98,12 +106,6 @@ class Admins_api_v1 extends EA_Controller
|
||||||
$this->admins_model->load($admin, $with);
|
$this->admins_model->load($admin, $with);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$admin) {
|
|
||||||
response('', 404);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
json_response($admin);
|
json_response($admin);
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
json_exception($e);
|
json_exception($e);
|
||||||
|
@ -113,7 +115,7 @@ class Admins_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Store a new admin.
|
* Store a new admin.
|
||||||
*/
|
*/
|
||||||
public function store()
|
public function store(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$admin = request();
|
$admin = request();
|
||||||
|
@ -145,7 +147,7 @@ class Admins_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Admin ID.
|
* @param int $id Admin ID.
|
||||||
*/
|
*/
|
||||||
public function update(int $id)
|
public function update(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->admins_model->get(['id' => $id]);
|
$occurrences = $this->admins_model->get(['id' => $id]);
|
||||||
|
@ -179,7 +181,7 @@ class Admins_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Admin ID.
|
* @param int $id Admin ID.
|
||||||
*/
|
*/
|
||||||
public function destroy(int $id)
|
public function destroy(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->admins_model->get(['id' => $id]);
|
$occurrences = $this->admins_model->get(['id' => $id]);
|
||||||
|
|
|
@ -43,7 +43,7 @@ class Appointments_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Get an appointment collection.
|
* Get an appointment collection.
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$keyword = $this->api->request_keyword();
|
$keyword = $this->api->request_keyword();
|
||||||
|
@ -143,7 +143,7 @@ class Appointments_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @deprecated Since 1.5
|
* @deprecated Since 1.5
|
||||||
*/
|
*/
|
||||||
private function aggregates(array &$appointment)
|
private function aggregates(array &$appointment): void
|
||||||
{
|
{
|
||||||
$aggregates = request('aggregates') !== null;
|
$aggregates = request('aggregates') !== null;
|
||||||
|
|
||||||
|
@ -171,9 +171,17 @@ class Appointments_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int|null $id Appointment ID.
|
* @param int|null $id Appointment ID.
|
||||||
*/
|
*/
|
||||||
public function show(int $id = null)
|
public function show(int $id = null): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$occurrences = $this->appointments_model->get(['id' => $id]);
|
||||||
|
|
||||||
|
if (empty($occurrences)) {
|
||||||
|
response('', 404);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$fields = $this->api->request_fields();
|
$fields = $this->api->request_fields();
|
||||||
|
|
||||||
$with = $this->api->request_with();
|
$with = $this->api->request_with();
|
||||||
|
@ -190,12 +198,6 @@ class Appointments_api_v1 extends EA_Controller
|
||||||
$this->appointments_model->load($appointment, $with);
|
$this->appointments_model->load($appointment, $with);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$appointment) {
|
|
||||||
response('Not Found', 404);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
json_response($appointment);
|
json_response($appointment);
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
json_exception($e);
|
json_exception($e);
|
||||||
|
@ -205,7 +207,7 @@ class Appointments_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Store a new appointment.
|
* Store a new appointment.
|
||||||
*/
|
*/
|
||||||
public function store()
|
public function store(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$appointment = request();
|
$appointment = request();
|
||||||
|
@ -295,7 +297,7 @@ class Appointments_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Appointment ID.
|
* @param int $id Appointment ID.
|
||||||
*/
|
*/
|
||||||
public function update(int $id)
|
public function update(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->appointments_model->get(['id' => $id]);
|
$occurrences = $this->appointments_model->get(['id' => $id]);
|
||||||
|
@ -331,7 +333,7 @@ class Appointments_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Appointment ID.
|
* @param int $id Appointment ID.
|
||||||
*/
|
*/
|
||||||
public function destroy(int $id)
|
public function destroy(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->appointments_model->get(['id' => $id]);
|
$occurrences = $this->appointments_model->get(['id' => $id]);
|
||||||
|
|
|
@ -54,7 +54,7 @@ class Availabilities_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* If no date parameter is provided then the current date will be used.
|
* If no date parameter is provided then the current date will be used.
|
||||||
*/
|
*/
|
||||||
public function get()
|
public function get(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$provider_id = request('providerId');
|
$provider_id = request('providerId');
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Customers_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Get a customer collection.
|
* Get a customer collection.
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$keyword = $this->api->request_keyword();
|
$keyword = $this->api->request_keyword();
|
||||||
|
@ -77,9 +77,17 @@ class Customers_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int|null $id Customer ID.
|
* @param int|null $id Customer ID.
|
||||||
*/
|
*/
|
||||||
public function show(int $id = null)
|
public function show(int $id = null): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$occurrences = $this->customers_model->get(['id' => $id]);
|
||||||
|
|
||||||
|
if (empty($occurrences)) {
|
||||||
|
response('', 404);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$fields = $this->api->request_fields();
|
$fields = $this->api->request_fields();
|
||||||
|
|
||||||
$customer = $this->customers_model->find($id);
|
$customer = $this->customers_model->find($id);
|
||||||
|
@ -90,12 +98,6 @@ class Customers_api_v1 extends EA_Controller
|
||||||
$this->customers_model->only($customer, $fields);
|
$this->customers_model->only($customer, $fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$customer) {
|
|
||||||
response('', 404);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
json_response($customer);
|
json_response($customer);
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
json_exception($e);
|
json_exception($e);
|
||||||
|
@ -105,7 +107,7 @@ class Customers_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Store a new customer.
|
* Store a new customer.
|
||||||
*/
|
*/
|
||||||
public function store()
|
public function store(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$customer = request();
|
$customer = request();
|
||||||
|
@ -133,7 +135,7 @@ class Customers_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Customer ID.
|
* @param int $id Customer ID.
|
||||||
*/
|
*/
|
||||||
public function update(int $id)
|
public function update(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->customers_model->get(['id' => $id]);
|
$occurrences = $this->customers_model->get(['id' => $id]);
|
||||||
|
@ -167,7 +169,7 @@ class Customers_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Customer ID.
|
* @param int $id Customer ID.
|
||||||
*/
|
*/
|
||||||
public function destroy(int $id)
|
public function destroy(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->customers_model->get(['id' => $id]);
|
$occurrences = $this->customers_model->get(['id' => $id]);
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Providers_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Get a provider collection.
|
* Get a provider collection.
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$keyword = $this->api->request_keyword();
|
$keyword = $this->api->request_keyword();
|
||||||
|
@ -77,9 +77,17 @@ class Providers_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int|null $id Provider ID.
|
* @param int|null $id Provider ID.
|
||||||
*/
|
*/
|
||||||
public function show(int $id = null)
|
public function show(int $id = null): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$occurrences = $this->providers_model->get(['id' => $id]);
|
||||||
|
|
||||||
|
if (empty($occurrences)) {
|
||||||
|
response('', 404);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$fields = $this->api->request_fields();
|
$fields = $this->api->request_fields();
|
||||||
|
|
||||||
$with = $this->api->request_with();
|
$with = $this->api->request_with();
|
||||||
|
@ -96,12 +104,6 @@ class Providers_api_v1 extends EA_Controller
|
||||||
$this->providers_model->load($provider, $with);
|
$this->providers_model->load($provider, $with);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$provider) {
|
|
||||||
response('', 404);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
json_response($provider);
|
json_response($provider);
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
json_exception($e);
|
json_exception($e);
|
||||||
|
@ -111,7 +113,7 @@ class Providers_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Store a new provider.
|
* Store a new provider.
|
||||||
*/
|
*/
|
||||||
public function store()
|
public function store(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$provider = request();
|
$provider = request();
|
||||||
|
@ -151,7 +153,7 @@ class Providers_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Provider ID.
|
* @param int $id Provider ID.
|
||||||
*/
|
*/
|
||||||
public function update(int $id)
|
public function update(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->providers_model->get(['id' => $id]);
|
$occurrences = $this->providers_model->get(['id' => $id]);
|
||||||
|
@ -185,7 +187,7 @@ class Providers_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Provider ID.
|
* @param int $id Provider ID.
|
||||||
*/
|
*/
|
||||||
public function destroy(int $id)
|
public function destroy(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->providers_model->get(['id' => $id]);
|
$occurrences = $this->providers_model->get(['id' => $id]);
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Secretaries_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Get a secretary collection.
|
* Get a secretary collection.
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$keyword = $this->api->request_keyword();
|
$keyword = $this->api->request_keyword();
|
||||||
|
@ -77,9 +77,17 @@ class Secretaries_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int|null $id Secretary ID.
|
* @param int|null $id Secretary ID.
|
||||||
*/
|
*/
|
||||||
public function show(int $id = null)
|
public function show(int $id = null): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$occurrences = $this->secretaries_model->get(['id' => $id]);
|
||||||
|
|
||||||
|
if (empty($occurrences)) {
|
||||||
|
response('', 404);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$fields = $this->api->request_fields();
|
$fields = $this->api->request_fields();
|
||||||
|
|
||||||
$secretary = $this->secretaries_model->find($id);
|
$secretary = $this->secretaries_model->find($id);
|
||||||
|
@ -90,12 +98,6 @@ class Secretaries_api_v1 extends EA_Controller
|
||||||
$this->secretaries_model->only($secretary, $fields);
|
$this->secretaries_model->only($secretary, $fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$secretary) {
|
|
||||||
response('', 404);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
json_response($secretary);
|
json_response($secretary);
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
json_exception($e);
|
json_exception($e);
|
||||||
|
@ -105,7 +107,7 @@ class Secretaries_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Store a new secretary.
|
* Store a new secretary.
|
||||||
*/
|
*/
|
||||||
public function store()
|
public function store(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$secretary = request();
|
$secretary = request();
|
||||||
|
@ -141,7 +143,7 @@ class Secretaries_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Secretary ID.
|
* @param int $id Secretary ID.
|
||||||
*/
|
*/
|
||||||
public function update(int $id)
|
public function update(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->secretaries_model->get(['id' => $id]);
|
$occurrences = $this->secretaries_model->get(['id' => $id]);
|
||||||
|
@ -175,7 +177,7 @@ class Secretaries_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Secretary ID.
|
* @param int $id Secretary ID.
|
||||||
*/
|
*/
|
||||||
public function destroy(int $id)
|
public function destroy(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->secretaries_model->get(['id' => $id]);
|
$occurrences = $this->secretaries_model->get(['id' => $id]);
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Service_categories_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Get a service-category collection.
|
* Get a service-category collection.
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$keyword = $this->api->request_keyword();
|
$keyword = $this->api->request_keyword();
|
||||||
|
@ -77,9 +77,17 @@ class Service_categories_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int|null $id Service-category ID.
|
* @param int|null $id Service-category ID.
|
||||||
*/
|
*/
|
||||||
public function show(int $id = null)
|
public function show(int $id = null): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$occurrences = $this->service_categories_model->get(['id' => $id]);
|
||||||
|
|
||||||
|
if (empty($occurrences)) {
|
||||||
|
response('', 404);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$fields = $this->api->request_fields();
|
$fields = $this->api->request_fields();
|
||||||
|
|
||||||
$with = $this->api->request_with();
|
$with = $this->api->request_with();
|
||||||
|
@ -96,12 +104,6 @@ class Service_categories_api_v1 extends EA_Controller
|
||||||
$this->service_categories_model->load($service_category, $with);
|
$this->service_categories_model->load($service_category, $with);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$service_category) {
|
|
||||||
response('', 404);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
json_response($service_category);
|
json_response($service_category);
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
json_exception($e);
|
json_exception($e);
|
||||||
|
@ -111,7 +113,7 @@ class Service_categories_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Store a new service-category.
|
* Store a new service-category.
|
||||||
*/
|
*/
|
||||||
public function store()
|
public function store(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$service_category = request();
|
$service_category = request();
|
||||||
|
@ -139,7 +141,7 @@ class Service_categories_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Service-category ID.
|
* @param int $id Service-category ID.
|
||||||
*/
|
*/
|
||||||
public function update(int $id)
|
public function update(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->service_categories_model->get(['id' => $id]);
|
$occurrences = $this->service_categories_model->get(['id' => $id]);
|
||||||
|
@ -173,7 +175,7 @@ class Service_categories_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Service-category ID.
|
* @param int $id Service-category ID.
|
||||||
*/
|
*/
|
||||||
public function destroy(int $id)
|
public function destroy(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->service_categories_model->get(['id' => $id]);
|
$occurrences = $this->service_categories_model->get(['id' => $id]);
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Services_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Get an service collection.
|
* Get an service collection.
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$keyword = $this->api->request_keyword();
|
$keyword = $this->api->request_keyword();
|
||||||
|
@ -77,9 +77,17 @@ class Services_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int|null $id Service ID.
|
* @param int|null $id Service ID.
|
||||||
*/
|
*/
|
||||||
public function show(int $id = null)
|
public function show(int $id = null): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$occurrences = $this->services_model->get(['id' => $id]);
|
||||||
|
|
||||||
|
if (empty($occurrences)) {
|
||||||
|
response('', 404);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$fields = $this->api->request_fields();
|
$fields = $this->api->request_fields();
|
||||||
|
|
||||||
$with = $this->api->request_with();
|
$with = $this->api->request_with();
|
||||||
|
@ -96,12 +104,6 @@ class Services_api_v1 extends EA_Controller
|
||||||
$this->services_model->load($service, $with);
|
$this->services_model->load($service, $with);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$service) {
|
|
||||||
response('', 404);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
json_response($service);
|
json_response($service);
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
json_exception($e);
|
json_exception($e);
|
||||||
|
@ -111,7 +113,7 @@ class Services_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Store a new service.
|
* Store a new service.
|
||||||
*/
|
*/
|
||||||
public function store()
|
public function store(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$service = request();
|
$service = request();
|
||||||
|
@ -139,7 +141,7 @@ class Services_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Service ID.
|
* @param int $id Service ID.
|
||||||
*/
|
*/
|
||||||
public function update(int $id)
|
public function update(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->services_model->get(['id' => $id]);
|
$occurrences = $this->services_model->get(['id' => $id]);
|
||||||
|
@ -173,7 +175,7 @@ class Services_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Service ID.
|
* @param int $id Service ID.
|
||||||
*/
|
*/
|
||||||
public function destroy(int $id)
|
public function destroy(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->services_model->get(['id' => $id]);
|
$occurrences = $this->services_model->get(['id' => $id]);
|
||||||
|
|
|
@ -71,7 +71,7 @@ class Settings_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param string $name Setting name.
|
* @param string $name Setting name.
|
||||||
*/
|
*/
|
||||||
public function show(string $name)
|
public function show(string $name): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$value = setting($name);
|
$value = setting($name);
|
||||||
|
@ -90,7 +90,7 @@ class Settings_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param string $name Setting name.
|
* @param string $name Setting name.
|
||||||
*/
|
*/
|
||||||
public function update(string $name)
|
public function update(string $name): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$value = request('value');
|
$value = request('value');
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Unavailabilities_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Get an unavailability collection.
|
* Get an unavailability collection.
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$keyword = $this->api->request_keyword();
|
$keyword = $this->api->request_keyword();
|
||||||
|
@ -77,9 +77,17 @@ class Unavailabilities_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int|null $id Unavailability ID.
|
* @param int|null $id Unavailability ID.
|
||||||
*/
|
*/
|
||||||
public function show(int $id = null)
|
public function show(int $id = null): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$occurrences = $this->unavailabilities_model->get(['id' => $id]);
|
||||||
|
|
||||||
|
if (empty($occurrences)) {
|
||||||
|
response('', 404);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$fields = $this->api->request_fields();
|
$fields = $this->api->request_fields();
|
||||||
|
|
||||||
$with = $this->api->request_with();
|
$with = $this->api->request_with();
|
||||||
|
@ -96,12 +104,6 @@ class Unavailabilities_api_v1 extends EA_Controller
|
||||||
$this->unavailabilities_model->load($unavailability, $with);
|
$this->unavailabilities_model->load($unavailability, $with);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$unavailability) {
|
|
||||||
response('', 404);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
json_response($unavailability);
|
json_response($unavailability);
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
json_exception($e);
|
json_exception($e);
|
||||||
|
@ -111,7 +113,7 @@ class Unavailabilities_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Store a new unavailability.
|
* Store a new unavailability.
|
||||||
*/
|
*/
|
||||||
public function store()
|
public function store(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$unavailability = request();
|
$unavailability = request();
|
||||||
|
@ -139,7 +141,7 @@ class Unavailabilities_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Unavailability ID.
|
* @param int $id Unavailability ID.
|
||||||
*/
|
*/
|
||||||
public function update(int $id)
|
public function update(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->unavailabilities_model->get(['id' => $id]);
|
$occurrences = $this->unavailabilities_model->get(['id' => $id]);
|
||||||
|
@ -173,7 +175,7 @@ class Unavailabilities_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Unavailability ID.
|
* @param int $id Unavailability ID.
|
||||||
*/
|
*/
|
||||||
public function destroy(int $id)
|
public function destroy(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->unavailabilities_model->get(['id' => $id]);
|
$occurrences = $this->unavailabilities_model->get(['id' => $id]);
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Webhooks_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Get a webhook collection.
|
* Get a webhook collection.
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$keyword = $this->api->request_keyword();
|
$keyword = $this->api->request_keyword();
|
||||||
|
@ -77,9 +77,17 @@ class Webhooks_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int|null $id Webhook ID.
|
* @param int|null $id Webhook ID.
|
||||||
*/
|
*/
|
||||||
public function show(int $id = null)
|
public function show(int $id = null): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
$occurrences = $this->webhooks_model->get(['id' => $id]);
|
||||||
|
|
||||||
|
if (empty($occurrences)) {
|
||||||
|
response('', 404);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$fields = $this->api->request_fields();
|
$fields = $this->api->request_fields();
|
||||||
|
|
||||||
$with = $this->api->request_with();
|
$with = $this->api->request_with();
|
||||||
|
@ -96,12 +104,6 @@ class Webhooks_api_v1 extends EA_Controller
|
||||||
$this->webhooks_model->load($webhook, $with);
|
$this->webhooks_model->load($webhook, $with);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$webhook) {
|
|
||||||
response('', 404);
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
json_response($webhook);
|
json_response($webhook);
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
json_exception($e);
|
json_exception($e);
|
||||||
|
@ -111,7 +113,7 @@ class Webhooks_api_v1 extends EA_Controller
|
||||||
/**
|
/**
|
||||||
* Store a new webhook.
|
* Store a new webhook.
|
||||||
*/
|
*/
|
||||||
public function store()
|
public function store(): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$webhook = request();
|
$webhook = request();
|
||||||
|
@ -139,7 +141,7 @@ class Webhooks_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Webhook ID.
|
* @param int $id Webhook ID.
|
||||||
*/
|
*/
|
||||||
public function update(int $id)
|
public function update(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->webhooks_model->get(['id' => $id]);
|
$occurrences = $this->webhooks_model->get(['id' => $id]);
|
||||||
|
@ -173,7 +175,7 @@ class Webhooks_api_v1 extends EA_Controller
|
||||||
*
|
*
|
||||||
* @param int $id Webhook ID.
|
* @param int $id Webhook ID.
|
||||||
*/
|
*/
|
||||||
public function destroy(int $id)
|
public function destroy(int $id): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$occurrences = $this->webhooks_model->get(['id' => $id]);
|
$occurrences = $this->webhooks_model->get(['id' => $id]);
|
||||||
|
|
|
@ -449,4 +449,7 @@ $lang['blocked_periods_hint'] = 'Define periods of time where public bookings wi
|
||||||
$lang['custom_field'] = 'Custom Field';
|
$lang['custom_field'] = 'Custom Field';
|
||||||
$lang['custom_fields'] = 'Custom Fields';
|
$lang['custom_fields'] = 'Custom Fields';
|
||||||
$lang['label'] = 'Label';
|
$lang['label'] = 'Label';
|
||||||
|
$lang['webhook_saved'] = 'Webhook saved successfully.';
|
||||||
|
$lang['webhook_deleted'] = 'Webhook deleted successfully.';
|
||||||
|
$lang['delete_webhook'] = 'Delete Webhook';
|
||||||
// End
|
// End
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>403 Forbidden</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<p>Directory access is forbidden.</p>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -446,7 +446,16 @@ $lang['blocked_periods'] = 'Blocked Periods';
|
||||||
$lang['blocked_period_save'] = 'Blocked Period Save';
|
$lang['blocked_period_save'] = 'Blocked Period Save';
|
||||||
$lang['blocked_period_delete'] = 'Blocked Period Delete';
|
$lang['blocked_period_delete'] = 'Blocked Period Delete';
|
||||||
$lang['blocked_periods_hint'] = 'Define periods of time where public bookings will be disabled for all providers (e.g. closed dates, holidays etc.).';
|
$lang['blocked_periods_hint'] = 'Define periods of time where public bookings will be disabled for all providers (e.g. closed dates, holidays etc.).';
|
||||||
|
<<<<<<< HEAD
|
||||||
$lang['custom_field'] = 'Değiştirilebilir Alan';
|
$lang['custom_field'] = 'Değiştirilebilir Alan';
|
||||||
$lang['custom_fields'] = 'Değiştirilebilir Alanlar';
|
$lang['custom_fields'] = 'Değiştirilebilir Alanlar';
|
||||||
$lang['label'] = 'Etiket';
|
$lang['label'] = 'Etiket';
|
||||||
|
=======
|
||||||
|
$lang['custom_field'] = 'Custom Field';
|
||||||
|
$lang['custom_fields'] = 'Custom Fields';
|
||||||
|
$lang['label'] = 'Label';
|
||||||
|
$lang['webhook_saved'] = 'Webhook saved successfully.';
|
||||||
|
$lang['webhook_deleted'] = 'Webhook deleted successfully.';
|
||||||
|
$lang['delete_webhook'] = 'Delete Webhook';
|
||||||
|
>>>>>>> upstream/develop
|
||||||
// End
|
// End
|
||||||
|
|
|
@ -63,7 +63,7 @@ class Notifications
|
||||||
bool $manage_mode = false,
|
bool $manage_mode = false,
|
||||||
): void {
|
): void {
|
||||||
try {
|
try {
|
||||||
$current_language = config('english');
|
$current_language = config('language');
|
||||||
|
|
||||||
$customer_link = site_url('booking/reschedule/' . $appointment['hash']);
|
$customer_link = site_url('booking/reschedule/' . $appointment['hash']);
|
||||||
|
|
||||||
|
|
|
@ -277,4 +277,65 @@ class Webhooks_model extends EA_Model
|
||||||
{
|
{
|
||||||
// Webhooks do not currently have any related resources.
|
// Webhooks do not currently have any related resources.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the database webhook record to the equivalent API resource.
|
||||||
|
*
|
||||||
|
* @param array $webhook Webhook data.
|
||||||
|
*/
|
||||||
|
public function api_encode(array &$webhook): void
|
||||||
|
{
|
||||||
|
$encoded_resource = [
|
||||||
|
'id' => array_key_exists('id', $webhook) ? (int) $webhook['id'] : null,
|
||||||
|
'name' => $webhook['name'],
|
||||||
|
'url' => $webhook['url'],
|
||||||
|
'actions' => $webhook['actions'],
|
||||||
|
'secret_token' => $webhook['secret_token'],
|
||||||
|
'is_ssl_verified' => $webhook['is_ssl_verified'],
|
||||||
|
'notes' => $webhook['notes'],
|
||||||
|
];
|
||||||
|
|
||||||
|
$webhook = $encoded_resource;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the API resource to the equivalent database webhook record.
|
||||||
|
*
|
||||||
|
* @param array $webhook API resource.
|
||||||
|
* @param array|null $base Base webhook data to be overwritten with the provided values (useful for updates).
|
||||||
|
*/
|
||||||
|
public function api_decode(array &$webhook, array $base = null)
|
||||||
|
{
|
||||||
|
$decoded_resource = $base ?: [];
|
||||||
|
|
||||||
|
if (array_key_exists('id', $webhook)) {
|
||||||
|
$decoded_resource['id'] = $webhook['id'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (array_key_exists('name', $webhook)) {
|
||||||
|
$decoded_resource['name'] = $webhook['name'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (array_key_exists('url', $webhook)) {
|
||||||
|
$decoded_resource['url'] = $webhook['url'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (array_key_exists('actions', $webhook)) {
|
||||||
|
$decoded_resource['actions'] = $webhook['actions'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (array_key_exists('secretToken', $webhook)) {
|
||||||
|
$decoded_resource['secret_token'] = $webhook['secretToken'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (array_key_exists('isSslVerified', $webhook)) {
|
||||||
|
$decoded_resource['is_ssl_verified'] = $webhook['isSslVerified'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (array_key_exists('notes', $webhook)) {
|
||||||
|
$decoded_resource['notes'] = $webhook['notes'];
|
||||||
|
}
|
||||||
|
|
||||||
|
$webhook = $decoded_resource;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ services:
|
||||||
|
|
||||||
swagger-ui:
|
swagger-ui:
|
||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
image: swaggerapi/swagger-ui
|
image: swaggerapi/swagger-ui:v5.10.5
|
||||||
ports:
|
ports:
|
||||||
- "8000:8080"
|
- "8000:8080"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
88
openapi.yml
88
openapi.yml
|
@ -54,7 +54,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Availabilities'
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
'401':
|
'401':
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
'500':
|
'500':
|
||||||
|
@ -131,7 +133,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/AppointmentCollection'
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/AppointmentRecord'
|
||||||
'401':
|
'401':
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
'500':
|
'500':
|
||||||
|
@ -302,7 +306,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/UnavailabilityCollection'
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/UnavailabilityRecord'
|
||||||
'401':
|
'401':
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
'500':
|
'500':
|
||||||
|
@ -311,6 +317,10 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ErrorResponse'
|
$ref: '#/components/schemas/ErrorResponse'
|
||||||
|
x-codegen-request-body-name: body
|
||||||
|
security:
|
||||||
|
- BearerToken: [ ]
|
||||||
|
- BasicAuth: [ ]
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- unavailabilities
|
- unavailabilities
|
||||||
|
@ -470,7 +480,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/CustomerCollection'
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/CustomerRecord'
|
||||||
'401':
|
'401':
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
'500':
|
'500':
|
||||||
|
@ -641,7 +653,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ServiceCollection'
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ServiceRecord'
|
||||||
'401':
|
'401':
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
'500':
|
'500':
|
||||||
|
@ -812,7 +826,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ServiceCategoryCollection'
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ServiceCategoryRecord'
|
||||||
'401':
|
'401':
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
'500':
|
'500':
|
||||||
|
@ -983,7 +999,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/AdminCollection'
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/AdminRecord'
|
||||||
'401':
|
'401':
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
'500':
|
'500':
|
||||||
|
@ -1154,7 +1172,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/ProviderCollection'
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ProviderRecord'
|
||||||
'401':
|
'401':
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
'500':
|
'500':
|
||||||
|
@ -1325,7 +1345,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/SecretaryCollection'
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/SecretaryRecord'
|
||||||
'401':
|
'401':
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
'500':
|
'500':
|
||||||
|
@ -1490,7 +1512,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/SettingCollection'
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/ServiceRecord'
|
||||||
'401':
|
'401':
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
'500':
|
'500':
|
||||||
|
@ -1606,7 +1630,9 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/WebhookCollection'
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/WebhookRecord'
|
||||||
'401':
|
'401':
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
'500':
|
'500':
|
||||||
|
@ -1821,10 +1847,6 @@ components:
|
||||||
customerId: 5
|
customerId: 5
|
||||||
providerId: 2
|
providerId: 2
|
||||||
serviceId: 6
|
serviceId: 6
|
||||||
AppointmentCollection:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/AppointmentRecord'
|
|
||||||
UnavailabilityRecord:
|
UnavailabilityRecord:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -1875,10 +1897,6 @@ components:
|
||||||
location: Test Street 1A, 12345 Some State, Some Place
|
location: Test Street 1A, 12345 Some State, Some Place
|
||||||
notes: This is a test appointment.
|
notes: This is a test appointment.
|
||||||
providerId: 2
|
providerId: 2
|
||||||
UnavailabilityCollection:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/UnavailabilityRecord'
|
|
||||||
CustomerRecord:
|
CustomerRecord:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -1978,10 +1996,6 @@ components:
|
||||||
customField4: Value4
|
customField4: Value4
|
||||||
customField5: Value5
|
customField5: Value5
|
||||||
notes: This is a test customer.
|
notes: This is a test customer.
|
||||||
CustomerCollection:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/CustomerRecord'
|
|
||||||
ServiceRecord:
|
ServiceRecord:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -2048,10 +2062,6 @@ components:
|
||||||
availabilitiesType: flexible
|
availabilitiesType: flexible
|
||||||
attendantsNumber: 1
|
attendantsNumber: 1
|
||||||
serviceCategoryId: null
|
serviceCategoryId: null
|
||||||
ServiceCollection:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ServiceRecord'
|
|
||||||
ServiceCategoryRecord:
|
ServiceCategoryRecord:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -2075,10 +2085,6 @@ components:
|
||||||
example:
|
example:
|
||||||
name: Test Category
|
name: Test Category
|
||||||
description: This is a test category.
|
description: This is a test category.
|
||||||
ServiceCategoryCollection:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ServiceCategoryRecord'
|
|
||||||
AdminRecord:
|
AdminRecord:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -2187,10 +2193,6 @@ components:
|
||||||
password: Password@123
|
password: Password@123
|
||||||
notifications: true
|
notifications: true
|
||||||
calendarView: default
|
calendarView: default
|
||||||
AdminCollection:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/AdminRecord'
|
|
||||||
ProviderRecord:
|
ProviderRecord:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -2391,10 +2393,6 @@ components:
|
||||||
end: '17:00'
|
end: '17:00'
|
||||||
breaks: [ ]
|
breaks: [ ]
|
||||||
saturday: null
|
saturday: null
|
||||||
ProviderCollection:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/ProviderRecord'
|
|
||||||
SecretaryRecord:
|
SecretaryRecord:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -2516,10 +2514,6 @@ components:
|
||||||
password: Password@123
|
password: Password@123
|
||||||
notifications: true
|
notifications: true
|
||||||
calendarView: default
|
calendarView: default
|
||||||
SecretaryCollection:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/SecretaryRecord'
|
|
||||||
SettingRecord:
|
SettingRecord:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -2537,10 +2531,6 @@ components:
|
||||||
type: string
|
type: string
|
||||||
example:
|
example:
|
||||||
value: ACME Inc
|
value: ACME Inc
|
||||||
SettingCollection:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/SettingRecord'
|
|
||||||
WebhookRecord:
|
WebhookRecord:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
@ -2588,10 +2578,6 @@ components:
|
||||||
secretToken: SecureSecretTokenHere
|
secretToken: SecureSecretTokenHere
|
||||||
isSslVerified: true
|
isSslVerified: true
|
||||||
notes: This is a webhook.
|
notes: This is a webhook.
|
||||||
WebhookCollection:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/WebhookRecord'
|
|
||||||
ErrorResponse:
|
ErrorResponse:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
Loading…
Reference in a new issue