methods['add_fees_post']['limit'] = 100; // 100 requests per hour per user/key $this->methods['get_fees_get']['limit'] = 100; $this->load->model('master_model', 'master_model'); } //This method used to get Login public function add_fees_post() { $data = json_decode(file_get_contents('php://input'), true); $feesdes = $data['Feesdes']; $active = $data['active']; $feesName = $data['feesName']; $feesdetails= array('FeesName'=>$feesName,'FeesDescription'=>$feesdes,'Active'=>$active); $res = $this->master_model->addfees($feesdetails); return $res; } public function get_fees_get() { $data = json_decode(file_get_contents('php://input'), true); $getfees = $this->master_model->getfees(); //print_r($getfees); return $getfees; } }