From 60c109d27b92fe620b22b2b1591cd93bcbe3ae02 Mon Sep 17 00:00:00 2001 From: gandhimathi Date: Tue, 12 Dec 2017 12:39:43 +0530 Subject: [PATCH] course details changes done --- .../controllers/Fees_Status_Controller.php | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Apollo/api/application/controllers/Fees_Status_Controller.php diff --git a/Apollo/api/application/controllers/Fees_Status_Controller.php b/Apollo/api/application/controllers/Fees_Status_Controller.php new file mode 100644 index 00000000..e5b0e606 --- /dev/null +++ b/Apollo/api/application/controllers/Fees_Status_Controller.php @@ -0,0 +1,77 @@ +methods['getStudentList_get']['limit'] = 500; // 500 requests per hour per user/key + $this->methods['getStudentList_post']['limit'] = 1000; // 100 requests per hour per user/key + $this->methods['getStudentList_delete']['limit'] = 50; // 50 requests per hour per user/key + // load the model + $this->load->model('Fees_model', 'Fees_status_model'); + + } + + + + /* + * get student list for fees update + * created by kms + * */ + public function getStudentList_post() + { + $search['requestedBy'] = $this->post('createdBy'); + $search['StudentName'] = $this->post('studentName'); + $search['MobileNumber'] = $this->post('mobileNumber'); + $getStudentDetails = $this->Fees_model->getStudentList($search); + + if ($getStudentDetails) + { + $getTrackedDetails['status'] = REST_Controller::HTTP_OK; + // Set the response and exit + $this->response($getStudentDetails, REST_Controller::HTTP_OK); // OK (200) being the HTTP response code + } + else + { + // Set the response and exit + $this->response([ + 'message' => 'No records found!', + 'status' => REST_Controller::HTTP_NOT_FOUND + ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code + } + + + } + + + + + +} \ No newline at end of file