diff --git a/Apollo/api/application/controllers/Fees_Status_Controller.php b/Apollo/api/application/controllers/Fees_Status_Controller.php index d4380634..cf110375 100755 --- a/Apollo/api/application/controllers/Fees_Status_Controller.php +++ b/Apollo/api/application/controllers/Fees_Status_Controller.php @@ -39,6 +39,7 @@ class Fees_Status_Controller extends REST_Controller { $this->methods['getUniversityCourseForFees_post']['limit'] = 1000; // 1000 requests per hour per user/key $this->methods['getFeesStructureAssign_post']['limit'] = 1000; // 1000 requests per hour per user/key $this->methods['setFeesForStudent_post']['limit'] = 1000; // 1000 requests per hour per user/key + $this->methods['sendStudentNotification_post']['limit'] = 2000; // 2000 requests per hour per user/key // load the model @@ -258,6 +259,31 @@ class Fees_Status_Controller extends REST_Controller { } + /* + * send notification for student + * created by kms + * */ + public function sendStudentNotification_post(){ + + $sendMessage = $this->Fees_model->studentNotification(); + + if ($sendMessage) + { + $this->response([ + 'message' => 'Done!', + 'status' => REST_Controller::HTTP_OK + ], REST_Controller::HTTP_OK); // NOT_FOUND (404) 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 + } + + }