CHANGE_GMC_TERMS_FAMILY_FLOATERS : AADHAVAN
This commit is contained in:
parent
602cceab7c
commit
55c16a422c
@ -2,9 +2,14 @@
|
|||||||
|
|
||||||
use CodeIgniter\Router\RouteCollection;
|
use CodeIgniter\Router\RouteCollection;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var RouteCollection $routes
|
* @var RouteCollection $routes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$routes->get('/swagger', 'SwaggerController::index', ['filter' => 'authMVC']);
|
||||||
|
|
||||||
|
|
||||||
// $routes->get('/', 'LoginController::index');
|
// $routes->get('/', 'LoginController::index');
|
||||||
$routes->get('/test', 'Home::index');
|
$routes->get('/test', 'Home::index');
|
||||||
$routes->get('/login', 'LoginController::index');///auth/google
|
$routes->get('/login', 'LoginController::index');///auth/google
|
||||||
@ -214,7 +219,6 @@ $routes->post("/editEmployeeProfile", "EmployeeRestController::editEmployeeProfi
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
$routes->post("employeeUpload", "EmployeeRestController::employeeUpload");
|
|
||||||
|
|
||||||
$routes->group("employeeRest", ["filter" => "authJWT"], function($routes){
|
$routes->group("employeeRest", ["filter" => "authJWT"], function($routes){
|
||||||
$routes->post("employeeUpload", "EmployeeRestController::employeeUpload");
|
$routes->post("employeeUpload", "EmployeeRestController::employeeUpload");
|
||||||
|
|||||||
@ -933,12 +933,10 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
public function policyGMCTerms()
|
public function policyGMCTerms()
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
// print_r($this->request->getPost('family_floaters'));die;
|
||||||
$this->myLogger->logme('error','Terms CREATE function called');
|
$this->myLogger->logme('error','Terms CREATE function called');
|
||||||
|
|
||||||
|
|
||||||
/*** Client Policy Table Primary Key(ID) ***/
|
/*** Client Policy Table Primary Key(ID) ***/
|
||||||
$client_policy_id = $this->request->getPost("client_policy_id");
|
$client_policy_id = $this->request->getPost("client_policy_id");
|
||||||
|
|
||||||
@ -947,9 +945,73 @@ class ClientController extends AdminController
|
|||||||
$data['corporatebuffer'] = $this->request->getPost("corporatebuffer");
|
$data['corporatebuffer'] = $this->request->getPost("corporatebuffer");
|
||||||
$data['family_floaters'] = $this->request->getPost("family_floaters") ?? [];
|
$data['family_floaters'] = $this->request->getPost("family_floaters") ?? [];
|
||||||
|
|
||||||
if (!in_array("self", $data['family_floaters'])) {
|
// if (!in_array("self", $data['family_floaters'])) {
|
||||||
array_unshift($data['family_floaters'], "self");
|
// array_unshift($data['family_floaters'], "self");
|
||||||
|
// }
|
||||||
|
$temp_family_floaters = $data['family_floaters'];
|
||||||
|
$data['family_floaters'] =[];
|
||||||
|
if (in_array("self",$temp_family_floaters) == 1) {
|
||||||
|
$data['family_floaters']['self'] =1;
|
||||||
|
}else{
|
||||||
|
$data['family_floaters']['self'] =0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (in_array("spouse",$temp_family_floaters) == 1) {
|
||||||
|
$data['family_floaters']['spouse'] =1;
|
||||||
|
}else{
|
||||||
|
$data['family_floaters']['spouse'] =0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// $data['family_floaters']['either-parents-pil'] =0;
|
||||||
|
|
||||||
|
if (count($temp_family_floaters)) {
|
||||||
|
$children_value = 0;
|
||||||
|
$value = 0;
|
||||||
|
|
||||||
|
if(count($temp_family_floaters) == 2){
|
||||||
|
$children_value = 0;
|
||||||
|
$value = 1;
|
||||||
|
}else if(count($temp_family_floaters) == 3){
|
||||||
|
$children_value = 1;
|
||||||
|
$value = 2;
|
||||||
|
}else{
|
||||||
|
$children_value = 2;
|
||||||
|
$value = 3;
|
||||||
|
}
|
||||||
|
$data['family_floaters']['childrens'] =(int)$temp_family_floaters[$children_value];
|
||||||
|
|
||||||
|
if ($temp_family_floaters[$value] == '1P') {
|
||||||
|
$data['family_floaters']['parents'] =1;
|
||||||
|
$data['family_floaters']['parents-in-law'] =0;
|
||||||
|
$data['family_floaters']['either-parents-pil'] =0;
|
||||||
|
}else if($temp_family_floaters[$value] == '2P'){
|
||||||
|
$data['family_floaters']['parents'] =2;
|
||||||
|
$data['family_floaters']['parents-in-law'] =0;
|
||||||
|
$data['family_floaters']['either-parents-pil'] =0;
|
||||||
|
}else if($temp_family_floaters[$value] == '1PIL'){
|
||||||
|
$data['family_floaters']['parents'] =0;
|
||||||
|
$data['family_floaters']['parents-in-law'] =1;
|
||||||
|
$data['family_floaters']['either-parents-pil'] =0;
|
||||||
|
}else if($temp_family_floaters[$value] == '2PIL'){
|
||||||
|
$data['family_floaters']['parents'] =0;
|
||||||
|
$data['family_floaters']['parents-in-law'] =2;
|
||||||
|
$data['family_floaters']['either-parents-pil'] =0;
|
||||||
|
}else if($temp_family_floaters[$value] == '2EPORPIL'){
|
||||||
|
$data['family_floaters']['parents'] =1;
|
||||||
|
$data['family_floaters']['parents-in-law'] =1;
|
||||||
|
$data['family_floaters']['either-parents-pil'] =0;
|
||||||
|
}else if($temp_family_floaters[$value] == 'EPORPIL'){
|
||||||
|
$data['family_floaters']['parents'] =0;
|
||||||
|
$data['family_floaters']['parents-in-law'] =0;
|
||||||
|
$data['family_floaters']['either-parents-pil'] =1;
|
||||||
|
}else if($temp_family_floaters[$value] == '4EPORPIL'){
|
||||||
|
$data['family_floaters']['parents'] =2;
|
||||||
|
$data['family_floaters']['parents-in-law'] =2;
|
||||||
|
$data['family_floaters']['either-parents-pil'] =0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$data['waiverofpreexistingdiseases'] =$this->request->getPost("waiverofpreexistingdiseases");
|
$data['waiverofpreexistingdiseases'] =$this->request->getPost("waiverofpreexistingdiseases");
|
||||||
if ($data['waiverofpreexistingdiseases'] == 1) {
|
if ($data['waiverofpreexistingdiseases'] == 1) {
|
||||||
$data['maternitycoverage'] =str_replace(',', '',$this->request->getPost("maternitycoverage"));
|
$data['maternitycoverage'] =str_replace(',', '',$this->request->getPost("maternitycoverage"));
|
||||||
@ -996,7 +1058,6 @@ class ClientController extends AdminController
|
|||||||
$data['special_condition_label'] = str_replace(',', '',$this->request->getPost("special_condition_label")) ?? [];
|
$data['special_condition_label'] = str_replace(',', '',$this->request->getPost("special_condition_label")) ?? [];
|
||||||
$data['special_condition_input'] = str_replace(',', '',$this->request->getPost("special_condition_input")) ?? [];
|
$data['special_condition_input'] = str_replace(',', '',$this->request->getPost("special_condition_input")) ?? [];
|
||||||
|
|
||||||
|
|
||||||
$jsonData = json_encode($data);
|
$jsonData = json_encode($data);
|
||||||
$dataa = array(
|
$dataa = array(
|
||||||
'policy_terms' => $jsonData,
|
'policy_terms' => $jsonData,
|
||||||
@ -1004,6 +1065,7 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
$record = $this->clientPolicyModel->where('id', $client_policy_id)->first();
|
$record = $this->clientPolicyModel->where('id', $client_policy_id)->first();
|
||||||
|
|
||||||
|
// print_r($data);die;
|
||||||
if ($record) {
|
if ($record) {
|
||||||
$update = $this->clientPolicyModel->update($client_policy_id, $dataa);
|
$update = $this->clientPolicyModel->update($client_policy_id, $dataa);
|
||||||
if ($update) {
|
if ($update) {
|
||||||
|
|||||||
@ -1,57 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Models;
|
|
||||||
|
|
||||||
use CodeIgniter\Model;
|
|
||||||
|
|
||||||
class EmployeeModel extends Model
|
|
||||||
{
|
|
||||||
protected $table = 'employees';
|
|
||||||
protected $primaryKey = 'id';
|
|
||||||
protected $allowedFields = [
|
|
||||||
"id",
|
|
||||||
"client_id",
|
|
||||||
"employee_id",
|
|
||||||
"change_event",
|
|
||||||
"relationship_id",
|
|
||||||
"relationship",
|
|
||||||
"batch_id",
|
|
||||||
"emp_code",
|
|
||||||
"name",
|
|
||||||
"email_personal",
|
|
||||||
"email_corporate",
|
|
||||||
"mobile",
|
|
||||||
"gender",
|
|
||||||
"dob",
|
|
||||||
"otp",
|
|
||||||
"emp_status",
|
|
||||||
"created_by",
|
|
||||||
"updated_by",
|
|
||||||
"is_active",
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public function getEmployeePolicy($id)
|
|
||||||
{
|
|
||||||
|
|
||||||
return $this->db->table('employee_polices')
|
|
||||||
->select(' policies.name as Policy_Name , client_policy.policy_terms as Policy_Terms, client_policy.client_id as ClientId, client_policy.policy_id as PolicyId,client_policy.id as ClientPolicyId, client_policy.open_for_enrollment as OpenForEnrollment') // Select all columns from both tables
|
|
||||||
->join('client_policy', 'client_policy.id = employee_polices.client_policy_id')
|
|
||||||
->join('policies', 'policies.id = client_policy.policy_id')
|
|
||||||
->where('employee_polices.employee_id', $id)
|
|
||||||
->get()
|
|
||||||
->getResult();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// for EMP rest API process do not change
|
|
||||||
public function checkExistingEmpEntrollment($arr)
|
|
||||||
{
|
|
||||||
return $this->where('emp_code',$arr['emp_code'])->where('name',$arr['name'])->first();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -17,6 +17,7 @@ use App\Models\PolicesModel;
|
|||||||
use App\Models\RelationshipModel;
|
use App\Models\RelationshipModel;
|
||||||
use App\Models\FileModel;
|
use App\Models\FileModel;
|
||||||
use App\Models\ClientPolicyModel;
|
use App\Models\ClientPolicyModel;
|
||||||
|
use App\Models\PolicyPremium1Model;
|
||||||
use App\Models\PolicyPremium2Model;
|
use App\Models\PolicyPremium2Model;
|
||||||
|
|
||||||
use App\Controllers\Jobs ;
|
use App\Controllers\Jobs ;
|
||||||
@ -44,6 +45,7 @@ class EmployeeRestController extends AdminController
|
|||||||
protected $policesModel;
|
protected $policesModel;
|
||||||
protected $relationshipModel;
|
protected $relationshipModel;
|
||||||
protected $clientPolicyModel;
|
protected $clientPolicyModel;
|
||||||
|
protected $policyPremium1Model;
|
||||||
protected $policyPremium2Model;
|
protected $policyPremium2Model;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
@ -58,6 +60,7 @@ class EmployeeRestController extends AdminController
|
|||||||
$this->relationshipModel = new RelationshipModel();
|
$this->relationshipModel = new RelationshipModel();
|
||||||
$this->fileModel= new FileModel();
|
$this->fileModel= new FileModel();
|
||||||
$this->clientPolicyModel = new ClientPolicyModel();
|
$this->clientPolicyModel = new ClientPolicyModel();
|
||||||
|
$this->policyPremium1Model = new PolicyPremium1Model();
|
||||||
$this->policyPremium2Model = new PolicyPremium2Model();
|
$this->policyPremium2Model = new PolicyPremium2Model();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -139,6 +142,7 @@ class EmployeeRestController extends AdminController
|
|||||||
$data = $this->request->getJSON();
|
$data = $this->request->getJSON();
|
||||||
if ($data) {
|
if ($data) {
|
||||||
$updatedCount = 0;
|
$updatedCount = 0;
|
||||||
|
|
||||||
foreach ($data as $item) {
|
foreach ($data as $item) {
|
||||||
$id = $item->id;
|
$id = $item->id;
|
||||||
$item->dob = $this->convertDateFormat($item->dob);
|
$item->dob = $this->convertDateFormat($item->dob);
|
||||||
@ -156,8 +160,8 @@ class EmployeeRestController extends AdminController
|
|||||||
return $this->respond(['status' => 'failed','code' => 404,'data' => $result], 404);
|
return $this->respond(['status' => 'failed','code' => 404,'data' => $result], 404);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (\Throwable $th) {
|
} catch (\Exception $e) {
|
||||||
return $this->respond(['status' => 'failed','code' => 500,'data' => $th], 500);
|
return $this->respond(['status' => 'failed','code' => 500,'data' => $e], 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -237,6 +241,7 @@ class EmployeeRestController extends AdminController
|
|||||||
public function deleteDependence()
|
public function deleteDependence()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
print_r($this->rquest);die;
|
||||||
if($this->request->getGet('id'))
|
if($this->request->getGet('id'))
|
||||||
{
|
{
|
||||||
$delete = $this->employeeModel->where('id', $this->request->getGet('id'))->delete();
|
$delete = $this->employeeModel->where('id', $this->request->getGet('id'))->delete();
|
||||||
@ -489,14 +494,21 @@ class EmployeeRestController extends AdminController
|
|||||||
// Upload the Employee Detail in DB by Sheet Data
|
// Upload the Employee Detail in DB by Sheet Data
|
||||||
public function employeeUpload()
|
public function employeeUpload()
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
$file = $this->request->getFile('file');
|
$file = $this->request->getFile('file');
|
||||||
$client_id = $this->request->getPost('client_id');
|
$client_id = $this->request->getPost('client_id');
|
||||||
|
// $client_id = $this->request->getJSON('client_id');
|
||||||
$policy_id = $this->request->getPost('policy_id');
|
$policy_id = $this->request->getPost('policy_id');
|
||||||
|
// $policy_id = $this->request->getJSON('policy_id');
|
||||||
|
|
||||||
$client_policy = $this->clientPolicyModel->where('id', $policy_id)->first();
|
$client_policy = $this->clientPolicyModel->where('id', $policy_id)->where('client_id', $client_id)->first();
|
||||||
|
|
||||||
|
if ($client_policy) {
|
||||||
$policy = $this->policesModel->where('id', $client_policy['policy_id'])->first();
|
$policy = $this->policesModel->where('id', $client_policy['policy_id'])->first();
|
||||||
|
$policy_permium_1 = $this->policyPremium1Model->where(['client_id' => $client_id , 'client_policy_id' => $policy_id,'is_active' =>1])-> first();
|
||||||
$policy_permium = $this->policyPremium2Model->where(['client_id' => $client_id , 'client_policy_id' => $policy_id,'is_active' =>1])-> first();
|
$policy_permium_2 = $this->policyPremium2Model->where(['client_id' => $client_id , 'client_policy_id' => $policy_id,'is_active' =>1])-> first();
|
||||||
|
$sum_insured_amount_for_check_employee_1 = $policy_permium_1['si'];
|
||||||
|
$sum_insured_amount_for_check_employee_2 = $policy_permium_2['si'];
|
||||||
|
|
||||||
$is_moved = $file->move(WRITEPATH . 'uploads/import_excel');
|
$is_moved = $file->move(WRITEPATH . 'uploads/import_excel');
|
||||||
$filename = $file->getName();
|
$filename = $file->getName();
|
||||||
@ -520,29 +532,6 @@ class EmployeeRestController extends AdminController
|
|||||||
|
|
||||||
$highestRowAndColumn = $sheet->getHighestRowAndColumn();
|
$highestRowAndColumn = $sheet->getHighestRowAndColumn();
|
||||||
$data = $sheet->rangeToArray('A1:' . $highestRowAndColumn['column'] . $highestRowAndColumn['row']);
|
$data = $sheet->rangeToArray('A1:' . $highestRowAndColumn['column'] . $highestRowAndColumn['row']);
|
||||||
// print_r($excel_data);die();
|
|
||||||
// $data = [];
|
|
||||||
// $data[] =$excel_data;
|
|
||||||
|
|
||||||
// print_r($data);die;
|
|
||||||
// Iterate through each row
|
|
||||||
// for ($row = 1; $row <= $highestRow; $row++) {
|
|
||||||
// // Initialize the row data array
|
|
||||||
// $rowData = [];
|
|
||||||
|
|
||||||
// // Iterate through each column in the row
|
|
||||||
// for ($col = 'A'; $col <= $highestColumn; $col++) {
|
|
||||||
// // Get the cell value
|
|
||||||
// $value = $sheet->getCell($col . $row)->getValue();
|
|
||||||
// // print_r($value);
|
|
||||||
// // Add the cell value to the row data array
|
|
||||||
// $rowData[] = $value;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// // Add the row data to the main data array
|
|
||||||
// $data[] = $rowData;
|
|
||||||
// }
|
|
||||||
// print_r($data);die;
|
|
||||||
|
|
||||||
$extractData['file_name']= $filename;
|
$extractData['file_name']= $filename;
|
||||||
$extractData['client_id']= $client_id;
|
$extractData['client_id']= $client_id;
|
||||||
@ -554,6 +543,24 @@ class EmployeeRestController extends AdminController
|
|||||||
$file_data =$this->fileModel->insert($extractData);
|
$file_data =$this->fileModel->insert($extractData);
|
||||||
|
|
||||||
$extra = [];
|
$extra = [];
|
||||||
|
if (count($data[0]) == 10) {
|
||||||
|
$value = ['S.No','Emp Code','Name','DOJ','Gender','Relation','DOB','Mail','Mobile','SI'];
|
||||||
|
$check_miss_match = [];
|
||||||
|
for ($i=0; $i <count($value) ; $i++) {
|
||||||
|
if ($data[0][$i] != $value[$i]) {
|
||||||
|
$check_miss_match[]=$data[0][$i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (count($check_miss_match) > 0) {
|
||||||
|
return $this->respond(['status' => 'failed', 'code' => 404, 'message' => "Column Name's are miss Match's!", 'data'=> $check_miss_match], 404);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(count($data[0]) != 10){
|
||||||
|
return $this->respond(['status' => 'failed', 'code' => 404, 'message' => "Uploaded file row count is Not Match!" ], 404);
|
||||||
|
}
|
||||||
|
|
||||||
//this change the column name into index number
|
//this change the column name into index number
|
||||||
for ($i = 0; $i < count($data[0]); $i++) {
|
for ($i = 0; $i < count($data[0]); $i++) {
|
||||||
$data[0][$i] = $i;
|
$data[0][$i] = $i;
|
||||||
@ -577,6 +584,18 @@ class EmployeeRestController extends AdminController
|
|||||||
}
|
}
|
||||||
$dataToInsert = [];
|
$dataToInsert = [];
|
||||||
$basic_cover_si= [];
|
$basic_cover_si= [];
|
||||||
|
if ($extra[9]) {
|
||||||
|
$new_array = [];
|
||||||
|
for ($i=0; $i < count($extra[9]); $i++) {
|
||||||
|
if ($sum_insured_amount_for_check_employee_2 != $extra[9][$i] || $sum_insured_amount_for_check_employee_1 != $extra[9][$i]) {
|
||||||
|
$new_array[] = $i+1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (count($new_array) > 0) {
|
||||||
|
$count =count($new_array);
|
||||||
|
return $this->respond(['status' => 'failed', 'code' => 404, 'message' => "$count Employee Sum Insured is Not Match.. " , 'data' => $new_array], 404);
|
||||||
|
}
|
||||||
|
}
|
||||||
foreach ($extra['0'] as $index => $id) {
|
foreach ($extra['0'] as $index => $id) {
|
||||||
$relation ='';
|
$relation ='';
|
||||||
if ($extra['5'][$index] === 'Mother' || $extra['5'][$index] === 'Father') {
|
if ($extra['5'][$index] === 'Mother' || $extra['5'][$index] === 'Father') {
|
||||||
@ -590,16 +609,12 @@ class EmployeeRestController extends AdminController
|
|||||||
}else{
|
}else{
|
||||||
$relation = 'self';
|
$relation = 'self';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Simplified formatDate function
|
// Simplified formatDate function
|
||||||
|
|
||||||
|
|
||||||
// Assigning formatted dates
|
// Assigning formatted dates
|
||||||
// print_r($extra['3']);die;
|
|
||||||
$doj = $extra['3'][$index] ;
|
$doj = $extra['3'][$index] ;
|
||||||
$dob = $extra['6'][$index] ;
|
$dob = $extra['6'][$index] ;
|
||||||
|
|
||||||
|
|
||||||
// Change date format for $doj
|
// Change date format for $doj
|
||||||
$doj_new_format = date('Y-m-d', strtotime($doj)); // $doj_new_format will be "2001-02-12"
|
$doj_new_format = date('Y-m-d', strtotime($doj)); // $doj_new_format will be "2001-02-12"
|
||||||
|
|
||||||
@ -607,12 +622,9 @@ class EmployeeRestController extends AdminController
|
|||||||
$dob_new_format = date('Y-m-d', strtotime($dob));
|
$dob_new_format = date('Y-m-d', strtotime($dob));
|
||||||
|
|
||||||
// Your existing code here
|
// Your existing code here
|
||||||
|
|
||||||
$emp_code =isset($extra['1'][$index]) ? $extra['1'][$index] : 0;
|
$emp_code =isset($extra['1'][$index]) ? $extra['1'][$index] : 0;
|
||||||
$name = $extra['2'][$index];
|
$name = $extra['2'][$index];
|
||||||
|
|
||||||
// print_r("--" . $emp_code. "---");
|
|
||||||
// print_r( $emp_code != 0 );
|
|
||||||
if($emp_code != 0 && $name != '' || $name != null){
|
if($emp_code != 0 && $name != '' || $name != null){
|
||||||
$record = [
|
$record = [
|
||||||
// 'id' => $id,
|
// 'id' => $id,
|
||||||
@ -630,12 +642,10 @@ class EmployeeRestController extends AdminController
|
|||||||
'emp_status'=>'draft'
|
'emp_status'=>'draft'
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
$basic_cover_si_value = null;
|
$basic_cover_si_value = null;
|
||||||
|
|
||||||
//Grid id is 10 and 11 sum insure value add only for self other grid type self sum insure is for the dependence
|
//Grid id is 10 and 11 sum insure value add only for self other grid type self sum insure is for the dependence
|
||||||
// if ($policy['policy_type_id'] != 1) {
|
if ($policy_permium_2['policy_grid_id'] == 10 || $policy_permium_2['policy_grid_id'] == 11) {
|
||||||
if ($policy_permium['policy_grid_id'] == 10 || $policy_permium['policy_grid_id'] == 11) {
|
|
||||||
if (strtolower($extra['5'][$index]) == 'self') {
|
if (strtolower($extra['5'][$index]) == 'self') {
|
||||||
$basic_cover_si_value = $extra['9'][$index];
|
$basic_cover_si_value = $extra['9'][$index];
|
||||||
}else{
|
}else{
|
||||||
@ -655,12 +665,10 @@ class EmployeeRestController extends AdminController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// }
|
|
||||||
|
|
||||||
$record2 = [
|
$record2 = [
|
||||||
'basic_cover_si' => $basic_cover_si_value,
|
'basic_cover_si' => $basic_cover_si_value,
|
||||||
];
|
];
|
||||||
// print_r($basic_cover_si);die;
|
|
||||||
$dataToInsert[] = $record;
|
$dataToInsert[] = $record;
|
||||||
$basic_cover_si[]= $basic_cover_si_value;
|
$basic_cover_si[]= $basic_cover_si_value;
|
||||||
}
|
}
|
||||||
@ -671,7 +679,6 @@ class EmployeeRestController extends AdminController
|
|||||||
$emp_id =0;
|
$emp_id =0;
|
||||||
|
|
||||||
$data_after_gpa_or_gmc =[];
|
$data_after_gpa_or_gmc =[];
|
||||||
// print_r($policy);die;
|
|
||||||
if ($policy['policy_type_id'] == 1) {
|
if ($policy['policy_type_id'] == 1) {
|
||||||
if (strtolower($dataToInsert[$a]['relationship']) == 'self') {
|
if (strtolower($dataToInsert[$a]['relationship']) == 'self') {
|
||||||
$data_after_gpa_or_gmc = $dataToInsert[$a];
|
$data_after_gpa_or_gmc = $dataToInsert[$a];
|
||||||
@ -679,8 +686,6 @@ class EmployeeRestController extends AdminController
|
|||||||
}else{
|
}else{
|
||||||
$data_after_gpa_or_gmc = $dataToInsert[$a];
|
$data_after_gpa_or_gmc = $dataToInsert[$a];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
date_default_timezone_set('Asia/Kolkata');
|
date_default_timezone_set('Asia/Kolkata');
|
||||||
$current_timestamp = time();
|
$current_timestamp = time();
|
||||||
$formatted_date_time = date('Y-m-d H:i:s', $current_timestamp);
|
$formatted_date_time = date('Y-m-d H:i:s', $current_timestamp);
|
||||||
@ -735,8 +740,6 @@ class EmployeeRestController extends AdminController
|
|||||||
|
|
||||||
|
|
||||||
//trigger
|
//trigger
|
||||||
// print_r($dataToInsert[$a]['email_personal']);die;
|
|
||||||
|
|
||||||
$mail = $dataToInsert[$a]['email_corporate'];
|
$mail = $dataToInsert[$a]['email_corporate'];
|
||||||
$subject = 'Welcome, Employee Benefit Program Enrolment';
|
$subject = 'Welcome, Employee Benefit Program Enrolment';
|
||||||
// $message = 'Dear ' . $dataToInsert[$a]['name'] . ",<br> We are glad to welcome you to the employee benefit program ," .$policy_name['name'] ."offered by your employer, <br><br><br> Click on the link below to review your personal and family details:<br><a href='https://venbait.in/nhance/app/dev'>Review Details</a>" ;
|
// $message = 'Dear ' . $dataToInsert[$a]['name'] . ",<br> We are glad to welcome you to the employee benefit program ," .$policy_name['name'] ."offered by your employer, <br><br><br> Click on the link below to review your personal and family details:<br><a href='https://venbait.in/nhance/app/dev'>Review Details</a>" ;
|
||||||
@ -756,6 +759,16 @@ class EmployeeRestController extends AdminController
|
|||||||
// $return_log = json_decode($return_log);
|
// $return_log = json_decode($return_log);
|
||||||
// $this->myLogger->logme('info', "Email Status : {mail_status}, Sender Email:{email}", ['mail_status' => $return_log->status, 'email'=> $return_log->data]);
|
// $this->myLogger->logme('info', "Email Status : {mail_status}, Sender Email:{email}", ['mail_status' => $return_log->status, 'email'=> $return_log->data]);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
return $this->respond(['status' => 'failed', 'code' => 404, 'message' => "Client id and Client Policy id is Not Match!" ], 404);
|
||||||
|
}
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
return $this->respond(['status' => 'failed','code' => 500,'data' => $e->getMessage()], 500);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -130,7 +130,6 @@ class RestAuthenticationController extends AdminController
|
|||||||
try {
|
try {
|
||||||
$mobile_number = $this->request->getJSON()->mobile_number;
|
$mobile_number = $this->request->getJSON()->mobile_number;
|
||||||
$randomNumber = rand(100000, 999999);
|
$randomNumber = rand(100000, 999999);
|
||||||
$randomNumber = 123456;
|
|
||||||
$HrData = $this->hrModel->where('mobile', $mobile_number)->where('contact_type', 'client')->first();
|
$HrData = $this->hrModel->where('mobile', $mobile_number)->where('contact_type', 'client')->first();
|
||||||
|
|
||||||
if ($HrData) {
|
if ($HrData) {
|
||||||
|
|||||||
10
app/Controllers/SwaggerController.php
Normal file
10
app/Controllers/SwaggerController.php
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?php namespace App\Controllers;
|
||||||
|
|
||||||
|
use App\Controllers\BaseController;
|
||||||
|
|
||||||
|
class SwaggerController extends BaseController
|
||||||
|
{
|
||||||
|
public function index(){
|
||||||
|
return view('swagger/index');
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -18,7 +18,15 @@ class AuthJWT implements FilterInterface
|
|||||||
{
|
{
|
||||||
public function before(RequestInterface $request, $arguments = null)
|
public function before(RequestInterface $request, $arguments = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$jwt ='';
|
||||||
|
|
||||||
|
if($request->headers()['Auth']){
|
||||||
|
$jwt = $request->headers()['Auth'];
|
||||||
|
}else{
|
||||||
$jwt = $request->getHeader('Authorization');
|
$jwt = $request->getHeader('Authorization');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($jwt) {
|
if ($jwt) {
|
||||||
if (JWTToken::validateJWT($jwt)) {
|
if (JWTToken::validateJWT($jwt)) {
|
||||||
|
|||||||
@ -16,7 +16,6 @@ use ReflectionClass;
|
|||||||
|
|
||||||
class JWTToken
|
class JWTToken
|
||||||
{
|
{
|
||||||
|
|
||||||
public static function encode($data =null)
|
public static function encode($data =null)
|
||||||
{
|
{
|
||||||
$secret_Key="secret";
|
$secret_Key="secret";
|
||||||
@ -44,6 +43,7 @@ class JWTToken
|
|||||||
{
|
{
|
||||||
$jwtParts = explode(' ', $jwt);
|
$jwtParts = explode(' ', $jwt);
|
||||||
|
|
||||||
|
// print_r($jwtParts);
|
||||||
if (count($jwtParts) != 2 || $jwtParts[0] == 'Bearer') {
|
if (count($jwtParts) != 2 || $jwtParts[0] == 'Bearer') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -109,20 +109,35 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6" style="margin-bottom:10px">
|
||||||
<div>
|
<div style="margin-top:10px">
|
||||||
<input type="checkbox" name="family_floaters[]" value="self" id="self" checked disabled> Self
|
<span style="margin-right: 20px;">Self:</span>
|
||||||
<input type="checkbox" name="family_floaters[]" value="spouse" id="spouse"> Spouse
|
<input type="checkbox" style="margin-right: 70px;" name="family_floaters[]" value="self" id="self" checked>
|
||||||
<input type="checkbox" name="family_floaters[]" value="child1" id="child1"> Child 1
|
<span style="margin-right: 20px;">Spouse:</span>
|
||||||
<input type="checkbox" name="family_floaters[]" value="child2" id="child2"> Child 2
|
<input type="checkbox" style="margin-right: 70px;"name="family_floaters[]" value="spouse" id="spouse">
|
||||||
<input type="checkbox" name="family_floaters[]" value="child3" id="child3"> Child 3
|
|
||||||
<input type="checkbox" name="family_floaters[]" value="child4" id="child4"> Child 4
|
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top:10px">
|
<div style="margin-top:10px">
|
||||||
<input type="checkbox" name="family_floaters[]" value="parent1" id="parent1"> Parent 1
|
<span for="children">Children:</span>
|
||||||
<input type="checkbox" name="family_floaters[]" value="parent2" id="parent2"> Parent 2
|
<select name="family_floaters[]" id="children" style="margin-left: 109px;">
|
||||||
<input type="checkbox" name="family_floaters[]" value="parent_in_law1" id="parent_in_law1"> Parent-In-Law 1
|
<option value="0">None</option>
|
||||||
<input type="checkbox" name="family_floaters[]" value="parent_in_law2" id="parent_in_law2"> Parent-In-Law 2
|
<option value="1">1</option>
|
||||||
|
<option value="2">2</option>
|
||||||
|
<option value="3">3</option>
|
||||||
|
<option value="4">4</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div style="margin-top:10px">
|
||||||
|
<span for="family_floaters">Select Other Members:</span>
|
||||||
|
<select name="family_floaters[]" id="family_floaters" style="margin-left: 10px;">
|
||||||
|
<option value="0">None</option>
|
||||||
|
<option value="1P">Only one parent (Either Father / Mother)</option>
|
||||||
|
<option value="2P">Only two parents (Father+Mother)</option>
|
||||||
|
<option value="1PIL">Only one parent in law (Either MIL / FIL)</option>
|
||||||
|
<option value="2PIL">Only two parents in law (FIL + MIL)</option>
|
||||||
|
<option value="2EPORPIL">Parents or PIL (Any two of Father, Mother, MIl, FIL)</option>
|
||||||
|
<option value="EPORPIL">Either Parents or PIL (Parents or Parents In Law)</option>
|
||||||
|
<option value="4EPORPIL">Parents + PIL (Father + Mother + MIL + FIL)</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -683,12 +698,37 @@ var grid_html = '';
|
|||||||
if (key.includes("family_floaters")) {
|
if (key.includes("family_floaters")) {
|
||||||
let checkboxes = document.querySelectorAll(`input[name="${key}[]"]`);
|
let checkboxes = document.querySelectorAll(`input[name="${key}[]"]`);
|
||||||
if (jsonObject[key]) {
|
if (jsonObject[key]) {
|
||||||
jsonObject[key].forEach(element => {
|
console.log(jsonObject[key]);
|
||||||
let checkbox = $(`#${element}`);
|
if (jsonObject[key].childrens) {
|
||||||
if (checkbox.is(":checkbox")) {
|
$('#children').val(jsonObject[key].childrens);
|
||||||
checkbox.prop("checked", true);
|
}
|
||||||
|
|
||||||
|
if (jsonObject[key].self == 0) {
|
||||||
|
$('#self').prop('checked', false);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (jsonObject[key].spouse == 0) {
|
||||||
|
$('#spouse').prop('checked', false);
|
||||||
|
}else{
|
||||||
|
$('#spouse').prop('checked', true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(jsonObject[key]['either-parents-pil'] == 1){
|
||||||
|
$('#family_floaters').val('EPORPIL');
|
||||||
|
}else if(jsonObject[key].parents == 1 && jsonObject[key]['parents-in-law'] == 1){
|
||||||
|
$('#family_floaters').val('2EPORPIL');
|
||||||
|
}else if(jsonObject[key].parents == 2 && jsonObject[key]['parents-in-law'] == 2){
|
||||||
|
$('#family_floaters').val('4EPORPIL');
|
||||||
|
}else if(jsonObject[key].parents == 1){
|
||||||
|
$('#family_floaters').val('1P');
|
||||||
|
}else if(jsonObject[key].parents == 2){
|
||||||
|
$('#family_floaters').val('2P');
|
||||||
|
}else if(jsonObject[key]['parents-in-law'] == 1){
|
||||||
|
$('#family_floaters').val('1PIL');
|
||||||
|
}else if(jsonObject[key]['parents-in-law'] == 2){
|
||||||
|
$('#family_floaters').val('2PIL');
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
60
app/Views/swagger/index.php
Normal file
60
app/Views/swagger/index.php
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
<!-- HTML for static distribution bundle build -->
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Swagger UI</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="<?= base_url('assets/swagger/swagger-ui.css') ?>">
|
||||||
|
<link rel="icon" type="image/png" href="<?= base_url('assets/swagger/favicon-32x32.png') ?> sizes=" 32x32" />
|
||||||
|
<link rel="icon" type="image/png" href="<?= base_url('assets/swagger/favicon-16x16.png') ?> sizes=" 16x16" />
|
||||||
|
<style>
|
||||||
|
html {
|
||||||
|
box-sizing: border-box;
|
||||||
|
overflow: -moz-scrollbars-vertical;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
*,
|
||||||
|
*:before,
|
||||||
|
*:after {
|
||||||
|
box-sizing: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
background: #fafafa;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="swagger-ui"></div>
|
||||||
|
|
||||||
|
<script src="<?= base_url('assets/swagger/swagger-ui-bundle.js') ?>">console.log(base_url); </script>
|
||||||
|
<script src="<?= base_url('assets/swagger/swagger-ui-standalone-preset.js') ?>"> </script>
|
||||||
|
<script>
|
||||||
|
window.onload = function() {
|
||||||
|
// Begin Swagger UI call region
|
||||||
|
const ui = SwaggerUIBundle({
|
||||||
|
url: "<?= base_url('assets/api.yaml') ?>",
|
||||||
|
dom_id: '#swagger-ui',
|
||||||
|
deepLinking: true,
|
||||||
|
presets: [
|
||||||
|
SwaggerUIBundle.presets.apis,
|
||||||
|
SwaggerUIStandalonePreset
|
||||||
|
],
|
||||||
|
plugins: [
|
||||||
|
SwaggerUIBundle.plugins.DownloadUrl
|
||||||
|
],
|
||||||
|
layout: "StandaloneLayout"
|
||||||
|
})
|
||||||
|
// End Swagger UI call region
|
||||||
|
|
||||||
|
window.ui = ui
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@ -21,7 +21,8 @@
|
|||||||
"phpmailer/phpmailer": "^6.9",
|
"phpmailer/phpmailer": "^6.9",
|
||||||
"phpoffice/phpspreadsheet": "^2.0",
|
"phpoffice/phpspreadsheet": "^2.0",
|
||||||
"psr/log": "^1.1",
|
"psr/log": "^1.1",
|
||||||
"slim/slim": "^4.13"
|
"slim/slim": "^4.13",
|
||||||
|
"zircote/swagger-php": "^4.8"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"codeigniter/coding-standard": "^1.7",
|
"codeigniter/coding-standard": "^1.7",
|
||||||
|
|||||||
890
public/assets/api.yaml
Normal file
890
public/assets/api.yaml
Normal file
@ -0,0 +1,890 @@
|
|||||||
|
openapi: 3.0.0
|
||||||
|
paths:
|
||||||
|
'/nhance/employeeRest/verifyEmployeeNumber':
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- Login
|
||||||
|
summary: 'Add a new VerifyEmployeeNumber to the store'
|
||||||
|
operationId: VerifyEmployeeNumber
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
mobile_number:
|
||||||
|
type: string
|
||||||
|
description: mobile_number
|
||||||
|
multipart/form-data:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
mobile_number:
|
||||||
|
type: string
|
||||||
|
description: mobile_number
|
||||||
|
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'Upload VerifyEmployeeNumber'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/VerifyEmployeeNumber'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/employeeRest/getVerifiedUserData':
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- Login
|
||||||
|
summary: ' GetVerifiedUserData'
|
||||||
|
operationId: GetVerifiedUserData
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
mobile_number:
|
||||||
|
type: string
|
||||||
|
description: mobile_number
|
||||||
|
otp:
|
||||||
|
type: string
|
||||||
|
description: otp
|
||||||
|
multipart/form-data:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
mobile_number:
|
||||||
|
type: string
|
||||||
|
description: mobile_number
|
||||||
|
otp:
|
||||||
|
type: string
|
||||||
|
description: otp
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'GetVerifiedUserData'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/GetVerifiedUserData'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/employeeRest/verifyHrWithMobileNumber':
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- Login
|
||||||
|
summary: 'VerifyHrWithMobileNumber'
|
||||||
|
operationId: VerifyHrWithMobileNumber
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
mobile_number:
|
||||||
|
type: string
|
||||||
|
description: mobile_number
|
||||||
|
multipart/form-data:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
mobile_number:
|
||||||
|
type: string
|
||||||
|
description: mobile_number
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'VerifyHrWithMobileNumber'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/VerifyHrWithMobileNumber'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/employeeRest/getVerifiedHrData':
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- Login
|
||||||
|
summary: ' GetVerifiedHrData'
|
||||||
|
operationId: GetVerifiedHrData
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
mobile_number:
|
||||||
|
type: string
|
||||||
|
description: mobile_number
|
||||||
|
otp:
|
||||||
|
type: string
|
||||||
|
description: otp
|
||||||
|
|
||||||
|
multipart/form-data:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
mobile_number:
|
||||||
|
type: string
|
||||||
|
description: mobile_number
|
||||||
|
otp:
|
||||||
|
type: string
|
||||||
|
description: otp
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'GetVerifiedHrData'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/GetVerifiedHrData'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/employeeRest/employeeUpload':
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
# - EmployeeUpload
|
||||||
|
summary: 'Add a new EmployeeUpload to the store'
|
||||||
|
operationId: EmployeeUpload
|
||||||
|
parameters:
|
||||||
|
- name: auth
|
||||||
|
in: header
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
multipart/form-data:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
client_id:
|
||||||
|
type: integer
|
||||||
|
description: client_id
|
||||||
|
policy_id:
|
||||||
|
type: integer
|
||||||
|
description: policy_id
|
||||||
|
file:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
description: File to upload
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
client_id:
|
||||||
|
type: integer
|
||||||
|
description: client_id
|
||||||
|
policy_id:
|
||||||
|
type: integer
|
||||||
|
description: policy_id
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'Upload EmployeeUpload'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/EmployeeUpload'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/getEmployeeProfile':
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
# - EmployeeUpload
|
||||||
|
summary: 'GetEmployeeProfile'
|
||||||
|
operationId: GetEmployeeProfile
|
||||||
|
parameters:
|
||||||
|
- name: emp_code
|
||||||
|
in: query
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'GetEmployeeProfile'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/GetEmployeeProfile'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/editEmployeeProfile':
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
# - EmployeeUpload
|
||||||
|
summary: 'EditEmployeeProfile'
|
||||||
|
operationId: EditEmployeeProfile
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the employee.
|
||||||
|
client_id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the client.
|
||||||
|
relationship:
|
||||||
|
type: string
|
||||||
|
description: The relationship of the employee.
|
||||||
|
relationship_code:
|
||||||
|
type: string
|
||||||
|
description: The code representing the relationship.
|
||||||
|
change_event:
|
||||||
|
type: string
|
||||||
|
description: The change event associated with the employee.
|
||||||
|
batch_id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the batch.
|
||||||
|
emp_code:
|
||||||
|
type: string
|
||||||
|
description: The code of the employee.
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
description: The name of the employee.
|
||||||
|
email_personal:
|
||||||
|
type: string
|
||||||
|
description: The personal email of the employee.
|
||||||
|
email_corporate:
|
||||||
|
type: string
|
||||||
|
description: The corporate email of the employee.
|
||||||
|
mobile:
|
||||||
|
type: string
|
||||||
|
description: The mobile number of the employee.
|
||||||
|
gender:
|
||||||
|
type: string
|
||||||
|
description: The gender of the employee.
|
||||||
|
dob:
|
||||||
|
type: string
|
||||||
|
format: date
|
||||||
|
description: The date of birth of the employee.
|
||||||
|
doj:
|
||||||
|
type: string
|
||||||
|
format: date
|
||||||
|
description: The date of joining of the employee.
|
||||||
|
basic_pay:
|
||||||
|
type: string
|
||||||
|
description: The basic pay of the employee.
|
||||||
|
band:
|
||||||
|
type: string
|
||||||
|
description: The band of the employee.
|
||||||
|
designation:
|
||||||
|
type: string
|
||||||
|
description: The designation of the employee.
|
||||||
|
emp_status:
|
||||||
|
type: string
|
||||||
|
description: The status of the employee.
|
||||||
|
is_active:
|
||||||
|
type: string
|
||||||
|
description: Indicates if the employee is active.
|
||||||
|
file_id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the file associated with the employee.
|
||||||
|
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'EditEmployeeProfile'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/EditEmployeeProfile'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/employeeRest/relationshipList':
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
# - EmployeeUpload
|
||||||
|
summary: 'RelationshipList'
|
||||||
|
operationId: RelationshipList
|
||||||
|
parameters:
|
||||||
|
- name: auth
|
||||||
|
in: header
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'RelationshipList'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/RelationshipList'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/employeeRest/getEmployeeAndDependence':
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
# - EmployeeUpload
|
||||||
|
summary: 'GetEmployeeAndDependence'
|
||||||
|
operationId: GetEmployeeAndDependence
|
||||||
|
parameters:
|
||||||
|
- name: auth
|
||||||
|
in: header
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
- name: emp_code
|
||||||
|
in: query
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'GetEmployeeAndDependence'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/GetEmployeeAndDependence'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/employeeRest/editEmployeeAndDependence':
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
# - EmployeeUpload
|
||||||
|
summary: 'EditEmployeeAndDependence'
|
||||||
|
operationId: EditEmployeeAndDependence
|
||||||
|
parameters:
|
||||||
|
- name: auth
|
||||||
|
in: header
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the employee.
|
||||||
|
client_id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the client.
|
||||||
|
relationship:
|
||||||
|
type: string
|
||||||
|
description: The relationship of the employee.
|
||||||
|
relationship_code:
|
||||||
|
type: string
|
||||||
|
description: The code representing the relationship.
|
||||||
|
change_event:
|
||||||
|
type: string
|
||||||
|
description: The change event associated with the employee.
|
||||||
|
batch_id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the batch.
|
||||||
|
emp_code:
|
||||||
|
type: string
|
||||||
|
description: The code of the employee.
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
description: The name of the employee.
|
||||||
|
email_personal:
|
||||||
|
type: string
|
||||||
|
description: The personal email of the employee.
|
||||||
|
email_corporate:
|
||||||
|
type: string
|
||||||
|
description: The corporate email of the employee.
|
||||||
|
mobile:
|
||||||
|
type: string
|
||||||
|
description: The mobile number of the employee.
|
||||||
|
gender:
|
||||||
|
type: string
|
||||||
|
description: The gender of the employee.
|
||||||
|
dob:
|
||||||
|
type: string
|
||||||
|
format: date
|
||||||
|
description: The date of birth of the employee.
|
||||||
|
doj:
|
||||||
|
type: string
|
||||||
|
format: date
|
||||||
|
description: The date of joining of the employee.
|
||||||
|
basic_pay:
|
||||||
|
type: string
|
||||||
|
description: The basic pay of the employee.
|
||||||
|
band:
|
||||||
|
type: string
|
||||||
|
description: The band of the employee.
|
||||||
|
designation:
|
||||||
|
type: string
|
||||||
|
description: The designation of the employee.
|
||||||
|
emp_status:
|
||||||
|
type: string
|
||||||
|
description: The status of the employee.
|
||||||
|
is_active:
|
||||||
|
type: string
|
||||||
|
description: Indicates if the employee is active.
|
||||||
|
file_id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the file associated with the employee.
|
||||||
|
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'EditEmployeeAndDependence'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/EditEmployeeAndDependence'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/employeeRest/addEmployeeAndDependence':
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
# - EmployeeUpload
|
||||||
|
summary: 'AddEmployeeAndDependence'
|
||||||
|
operationId: AddEmployeeAndDependence
|
||||||
|
parameters:
|
||||||
|
- name: auth
|
||||||
|
in: header
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
client_id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the client.
|
||||||
|
relationship:
|
||||||
|
type: string
|
||||||
|
description: The relationship of the employee.
|
||||||
|
relationship_code:
|
||||||
|
type: string
|
||||||
|
description: The code representing the relationship.
|
||||||
|
change_event:
|
||||||
|
type: string
|
||||||
|
description: The change event associated with the employee.
|
||||||
|
batch_id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the batch.
|
||||||
|
emp_code:
|
||||||
|
type: string
|
||||||
|
description: The code of the employee.
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
description: The name of the employee.
|
||||||
|
email_personal:
|
||||||
|
type: string
|
||||||
|
description: The personal email of the employee.
|
||||||
|
email_corporate:
|
||||||
|
type: string
|
||||||
|
description: The corporate email of the employee.
|
||||||
|
mobile:
|
||||||
|
type: string
|
||||||
|
description: The mobile number of the employee.
|
||||||
|
gender:
|
||||||
|
type: string
|
||||||
|
description: The gender of the employee.
|
||||||
|
dob:
|
||||||
|
type: string
|
||||||
|
format: date
|
||||||
|
description: The date of birth of the employee.
|
||||||
|
doj:
|
||||||
|
type: string
|
||||||
|
format: date
|
||||||
|
description: The date of joining of the employee.
|
||||||
|
basic_pay:
|
||||||
|
type: string
|
||||||
|
description: The basic pay of the employee.
|
||||||
|
band:
|
||||||
|
type: string
|
||||||
|
description: The band of the employee.
|
||||||
|
designation:
|
||||||
|
type: string
|
||||||
|
description: The designation of the employee.
|
||||||
|
emp_status:
|
||||||
|
type: string
|
||||||
|
description: The status of the employee.
|
||||||
|
is_active:
|
||||||
|
type: string
|
||||||
|
description: Indicates if the employee is active.
|
||||||
|
file_id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the file associated with the employee.
|
||||||
|
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'EditEmployeeAndDependence'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/AddEmployeeAndDependence'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/employeeRest/getEmployeePolicy':
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
# - EmployeeUpload
|
||||||
|
summary: 'GetEmployeePolicy'
|
||||||
|
operationId: GetEmployeePolicy
|
||||||
|
parameters:
|
||||||
|
- name: auth
|
||||||
|
in: header
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
- name: id
|
||||||
|
in: query
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
- name: emp_code
|
||||||
|
in: query
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'GetEmployeePolicy'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/GetEmployeePolicy'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/employeeRest/createOrUpdateEmployeePolicySiAmount':
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
# - EmployeeUpload
|
||||||
|
summary: 'CreateOrUpdateEmployeePolicySiAmount'
|
||||||
|
operationId: CreateOrUpdateEmployeePolicySiAmount
|
||||||
|
parameters:
|
||||||
|
- name: auth
|
||||||
|
in: header
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
requestBody:
|
||||||
|
required: true
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
employee_id:
|
||||||
|
type: integer
|
||||||
|
description: The ID of the employee.
|
||||||
|
client_policy_id:
|
||||||
|
type: integer
|
||||||
|
description: The ID of the client.
|
||||||
|
basic_cover_si:
|
||||||
|
type: string
|
||||||
|
description: The Employee Policy.
|
||||||
|
premium:
|
||||||
|
type: string
|
||||||
|
description: The code representing the Employee Policy.
|
||||||
|
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'CreateOrUpdateEmployeePolicySiAmount'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/CreateOrUpdateEmployeePolicySiAmount'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/employeeRest/deleteDependence':
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
# - EmployeeUpload
|
||||||
|
summary: 'DeleteDependence'
|
||||||
|
operationId: DeleteDependence
|
||||||
|
parameters:
|
||||||
|
- name: auth
|
||||||
|
in: header
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
- name: id
|
||||||
|
in: query
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'DeleteDependence'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/DeleteDependence'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/employeeRest/getEmployeeAndDependenceByClientId':
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
# - EmployeeUpload
|
||||||
|
summary: 'GetEmployeeAndDependenceByClientId'
|
||||||
|
operationId: GetEmployeeAndDependenceByClientId
|
||||||
|
parameters:
|
||||||
|
- name: auth
|
||||||
|
in: header
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
- name: client_id
|
||||||
|
in: query
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
- name: client_policy_id
|
||||||
|
in: query
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'GetEmployeeAndDependenceByClientId'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/GetEmployeeAndDependenceByClientId'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
'/nhance/employeeRest/getClientPolicy':
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
# - EmployeeUpload
|
||||||
|
summary: 'GetClientPolicy'
|
||||||
|
operationId: GetClientPolicy
|
||||||
|
parameters:
|
||||||
|
- name: auth
|
||||||
|
in: header
|
||||||
|
description: an authorization header
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: 'GetClientPolicy'
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/GetClientPolicy'
|
||||||
|
'405':
|
||||||
|
description: 'Invalid input'
|
||||||
|
security:
|
||||||
|
- bearer_auth: []
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
components:
|
||||||
|
schemas:
|
||||||
|
EmployeeUpload:
|
||||||
|
title: EmployeeUpload
|
||||||
|
description: EmployeeUpload
|
||||||
|
properties:
|
||||||
|
client_id:
|
||||||
|
title: client_id
|
||||||
|
description: client_id
|
||||||
|
type: integer
|
||||||
|
policy_id:
|
||||||
|
title: policy_id
|
||||||
|
description: policy_id
|
||||||
|
type: integer
|
||||||
|
file:
|
||||||
|
title: file
|
||||||
|
description: file
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
type: object
|
||||||
|
GetVerifiedUserData:
|
||||||
|
title: GetVerifiedUserData
|
||||||
|
description: GetVerifiedUserData
|
||||||
|
properties:
|
||||||
|
mobile_number:
|
||||||
|
title: mobile_number
|
||||||
|
description: mobile_number
|
||||||
|
type: string
|
||||||
|
otp:
|
||||||
|
title: otp
|
||||||
|
description: otp
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
VerifyEmployeeNumber:
|
||||||
|
title: VerifyEmployeeNumber
|
||||||
|
description: VerifyEmployeeNumber
|
||||||
|
properties:
|
||||||
|
mobile_number:
|
||||||
|
title: mobile_number
|
||||||
|
description: mobile_number
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
GetVerifiedHrData:
|
||||||
|
title: GetVerifiedHrData
|
||||||
|
description: GetVerifiedHrData
|
||||||
|
properties:
|
||||||
|
mobile_number:
|
||||||
|
title: mobile_number
|
||||||
|
description: mobile_number
|
||||||
|
type: string
|
||||||
|
otp:
|
||||||
|
title: otp
|
||||||
|
description: otp
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
VerifyHrWithMobileNumber:
|
||||||
|
title: VerifyHrWithMobileNumber
|
||||||
|
description: VerifyHrWithMobileNumber
|
||||||
|
properties:
|
||||||
|
mobile_number:
|
||||||
|
title: mobile_number
|
||||||
|
description: mobile_number
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
GetEmployeeProfile:
|
||||||
|
title: GetEmployeeProfile
|
||||||
|
description: GetEmployeeProfile
|
||||||
|
properties:
|
||||||
|
emp_code:
|
||||||
|
title: emp_code
|
||||||
|
description: emp_code
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
EditEmployeeProfile:
|
||||||
|
title: EditEmployeeProfile
|
||||||
|
description: EditEmployeeProfile
|
||||||
|
properties:
|
||||||
|
emp_code:
|
||||||
|
title: emp_code
|
||||||
|
description: emp_code
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
RelationshipList:
|
||||||
|
title: RelationshipList
|
||||||
|
description: RelationshipList
|
||||||
|
type: object
|
||||||
|
EditEmployeeAndDependence:
|
||||||
|
title: EditEmployeeAndDependence
|
||||||
|
description: EditEmployeeAndDependence
|
||||||
|
properties:
|
||||||
|
emp_code:
|
||||||
|
title: emp_code
|
||||||
|
description: emp_code
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
GetEmployeeAndDependence:
|
||||||
|
title: EditEmployeeAndDependence
|
||||||
|
description: EditEmployeeAndDependence
|
||||||
|
properties:
|
||||||
|
emp_code:
|
||||||
|
title: emp_code
|
||||||
|
description: emp_code
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
AddEmployeeAndDependence:
|
||||||
|
title: AddEmployeeAndDependence
|
||||||
|
description: AddEmployeeAndDependence
|
||||||
|
properties:
|
||||||
|
emp_code:
|
||||||
|
title: emp_code
|
||||||
|
description: emp_code
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
GetEmployeePolicy:
|
||||||
|
title: GetEmployeePolicy
|
||||||
|
description: GetEmployeePolicy
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
title: id
|
||||||
|
description: id
|
||||||
|
type: integer
|
||||||
|
emp_code:
|
||||||
|
title: emp_code
|
||||||
|
description: emp_code
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
CreateOrUpdateEmployeePolicySiAmount:
|
||||||
|
title: CreateOrUpdateEmployeePolicySiAmount
|
||||||
|
description: CreateOrUpdateEmployeePolicySiAmount
|
||||||
|
properties:
|
||||||
|
employee_id:
|
||||||
|
title: employee_id
|
||||||
|
description: employee_id
|
||||||
|
type: integer
|
||||||
|
client_policy_id:
|
||||||
|
title: client_policy_id
|
||||||
|
description: client_policy_id
|
||||||
|
type: integer
|
||||||
|
basic_cover_si:
|
||||||
|
title: basic_cover_si
|
||||||
|
description: basic_cover_si
|
||||||
|
type: string
|
||||||
|
premium:
|
||||||
|
title: premium
|
||||||
|
description: premium
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
DeleteDependence:
|
||||||
|
title: DeleteDependence
|
||||||
|
description: DeleteDependence
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
title: id
|
||||||
|
description: id
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
GetEmployeeAndDependenceByClientId:
|
||||||
|
title: GetEmployeeAndDependenceByClientId
|
||||||
|
description: GetEmployeeAndDependenceByClientId
|
||||||
|
properties:
|
||||||
|
client_id:
|
||||||
|
title: client_id
|
||||||
|
description: client_id
|
||||||
|
type: integer
|
||||||
|
client_policy_id:
|
||||||
|
title: client_policy_id
|
||||||
|
description: client_policy_id
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
GetClientPolicy:
|
||||||
|
title: GetClientPolicy
|
||||||
|
description: GetClientPolicy
|
||||||
|
type: object
|
||||||
|
|
||||||
|
# securitySchemes:
|
||||||
|
# Authorization:
|
||||||
|
# type: http
|
||||||
|
# scheme: bearer
|
||||||
|
# bearerFormat: JWT
|
||||||
BIN
public/assets/swagger/favicon-16x16.png
Normal file
BIN
public/assets/swagger/favicon-16x16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 665 B |
BIN
public/assets/swagger/favicon-32x32.png
Normal file
BIN
public/assets/swagger/favicon-32x32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 628 B |
60
public/assets/swagger/index.html
Normal file
60
public/assets/swagger/index.html
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
<!-- HTML for static distribution bundle build -->
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Swagger UI</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
|
||||||
|
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
|
||||||
|
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />
|
||||||
|
<style>
|
||||||
|
html
|
||||||
|
{
|
||||||
|
box-sizing: border-box;
|
||||||
|
overflow: -moz-scrollbars-vertical;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
|
*,
|
||||||
|
*:before,
|
||||||
|
*:after
|
||||||
|
{
|
||||||
|
box-sizing: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
body
|
||||||
|
{
|
||||||
|
margin:0;
|
||||||
|
background: #fafafa;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="swagger-ui"></div>
|
||||||
|
|
||||||
|
<script src="./swagger-ui-bundle.js"> </script>
|
||||||
|
<script src="./swagger-ui-standalone-preset.js"> </script>
|
||||||
|
<script>
|
||||||
|
window.onload = function() {
|
||||||
|
// Begin Swagger UI call region
|
||||||
|
const ui = SwaggerUIBundle({
|
||||||
|
url: "https://petstore.swagger.io/v2/swagger.json",
|
||||||
|
dom_id: '#swagger-ui',
|
||||||
|
deepLinking: true,
|
||||||
|
presets: [
|
||||||
|
SwaggerUIBundle.presets.apis,
|
||||||
|
SwaggerUIStandalonePreset
|
||||||
|
],
|
||||||
|
plugins: [
|
||||||
|
SwaggerUIBundle.plugins.DownloadUrl
|
||||||
|
],
|
||||||
|
layout: "StandaloneLayout"
|
||||||
|
})
|
||||||
|
// End Swagger UI call region
|
||||||
|
|
||||||
|
window.ui = ui
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
68
public/assets/swagger/oauth2-redirect.html
Normal file
68
public/assets/swagger/oauth2-redirect.html
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en-US">
|
||||||
|
<title>Swagger UI: OAuth2 Redirect</title>
|
||||||
|
<body onload="run()">
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
<script>
|
||||||
|
'use strict';
|
||||||
|
function run () {
|
||||||
|
var oauth2 = window.opener.swaggerUIRedirectOauth2;
|
||||||
|
var sentState = oauth2.state;
|
||||||
|
var redirectUrl = oauth2.redirectUrl;
|
||||||
|
var isValid, qp, arr;
|
||||||
|
|
||||||
|
if (/code|token|error/.test(window.location.hash)) {
|
||||||
|
qp = window.location.hash.substring(1);
|
||||||
|
} else {
|
||||||
|
qp = location.search.substring(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
arr = qp.split("&")
|
||||||
|
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';})
|
||||||
|
qp = qp ? JSON.parse('{' + arr.join() + '}',
|
||||||
|
function (key, value) {
|
||||||
|
return key === "" ? value : decodeURIComponent(value)
|
||||||
|
}
|
||||||
|
) : {}
|
||||||
|
|
||||||
|
isValid = qp.state === sentState
|
||||||
|
|
||||||
|
if ((
|
||||||
|
oauth2.auth.schema.get("flow") === "accessCode"||
|
||||||
|
oauth2.auth.schema.get("flow") === "authorizationCode"
|
||||||
|
) && !oauth2.auth.code) {
|
||||||
|
if (!isValid) {
|
||||||
|
oauth2.errCb({
|
||||||
|
authId: oauth2.auth.name,
|
||||||
|
source: "auth",
|
||||||
|
level: "warning",
|
||||||
|
message: "Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (qp.code) {
|
||||||
|
delete oauth2.state;
|
||||||
|
oauth2.auth.code = qp.code;
|
||||||
|
oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
|
||||||
|
} else {
|
||||||
|
let oauthErrorMsg
|
||||||
|
if (qp.error) {
|
||||||
|
oauthErrorMsg = "["+qp.error+"]: " +
|
||||||
|
(qp.error_description ? qp.error_description+ ". " : "no accessCode received from the server. ") +
|
||||||
|
(qp.error_uri ? "More info: "+qp.error_uri : "");
|
||||||
|
}
|
||||||
|
|
||||||
|
oauth2.errCb({
|
||||||
|
authId: oauth2.auth.name,
|
||||||
|
source: "auth",
|
||||||
|
level: "error",
|
||||||
|
message: oauthErrorMsg || "[Authorization failed]: no accessCode received from the server"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
oauth2.callback({auth: oauth2.auth, token: qp, isValid: isValid, redirectUrl: redirectUrl});
|
||||||
|
}
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
92
public/assets/swagger/swagger-ui-bundle.js
Normal file
92
public/assets/swagger/swagger-ui-bundle.js
Normal file
File diff suppressed because one or more lines are too long
1
public/assets/swagger/swagger-ui-bundle.js.map
Normal file
1
public/assets/swagger/swagger-ui-bundle.js.map
Normal file
File diff suppressed because one or more lines are too long
22
public/assets/swagger/swagger-ui-standalone-preset.js
Normal file
22
public/assets/swagger/swagger-ui-standalone-preset.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
public/assets/swagger/swagger-ui.css
Normal file
4
public/assets/swagger/swagger-ui.css
Normal file
File diff suppressed because one or more lines are too long
1
public/assets/swagger/swagger-ui.css.map
Normal file
1
public/assets/swagger/swagger-ui.css.map
Normal file
File diff suppressed because one or more lines are too long
9
public/assets/swagger/swagger-ui.js
Normal file
9
public/assets/swagger/swagger-ui.js
Normal file
File diff suppressed because one or more lines are too long
1
public/assets/swagger/swagger-ui.js.map
Normal file
1
public/assets/swagger/swagger-ui.js.map
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user