666666 * attainment as per Bloom's Taxanomy (L1-L6).
667667 */
668668
669+ // ------------------------------------------------------------------------------------------
670+ // Semester
671+ // ------------------------------------------------------------------------------------------
672+ /**
673+ * @api {post } /semester/add Request to add Semester information
674+ * @apiName Addsemester
675+ * @apiGroup Semester
676+ *
677+ * @apiQuery {Number} [number] Number of semester
678+ * @apiQuery {String} [academicYear] To show the current academic year
679+ * @apiQuery {String} [type] Stores the enum ODD or EVEN for semester
680+ * @apiQuery {Date} [startDate] Start date of the semester
681+ * @apiQuery {Date} [endDate] End date of the semester
682+ *
683+ * @apiSuccess {String} res Response message .
684+ * @apiError (Error 500) DatabaseError Err message if there is an error inserting into the database.
685+ *
686+ */
687+
688+ /**
689+ * @api {get } /semester/list Request to list Semester information
690+ * @apiName semesterlist
691+ * @apiGroup Semester
692+ *
693+ * @apiQuery {Number} [number] Number of semester
694+ * @apiQuery {String} [academicYear] To show the current academic year
695+ * @apiQuery {String} [type] Stores the enum ODD or EVEN for semester
696+ * @apiQuery {Date} [startDate] Start date of the semester
697+ * @apiQuery {Date} [endDate] End date of the semester
698+ *
699+ * @apiSuccess {semester[]} res Array of Filtered semester Doc.
700+ * @apiSuccess {Number} semester.number Number of semester
701+ * @apiSuccess {String} semester.academicYear To show the current academic year of the semester
702+ * @apiSuccess {String} semester.type Stores the enum ODD or EVEN for semester
703+ * @apiSuccess {Date} semester.startDate Start date of the semester
704+ * @apiSuccess {Date} semester.endDate End date of the semester
705+ *
706+ */
707+
708+ /**
709+ * @api {update } /semester/update/:id Request to list Semester information
710+ * @apiName Updatesemester
711+ * @apiGroup Semester
712+ *
713+ * @apiBody {Number} [number] Number of semester
714+ * @apiBody {String} [academicYear] To show the current academic year
715+ * @apiBody {String} [type] Stores the enum ODD or EVEN for semester
716+ * @apiBody {Date} [startDate] Start date of the semester
717+ * @apiBody {Date} [endDate] End date of the semester
718+ *
719+ *@apiSuccess {String} res Semester updated.
720+ * @apiError (Error 500) DatabaseError Error in updating the database.
721+ *
722+ */
723+
724+ /**
725+ * @api {delete } /semester/delete/:id Request to list Semester information
726+ * @apiName Deletesemester
727+ * @apiGroup Semester
728+ *
729+ * @apiParam {String} id The ID of the Semester document to delete.
730+ *
731+ * @apiSuccess {String} res Success message indicating the deletion.
732+ *
733+ * @apiError (Error 500) DatabaseError Error message if there was an error during the deletion.
734+ */
735+
736+
669737// ------------------------------------------------------------------------------------------
670738// Activity.
671739// ------------------------------------------------------------------------------------------
813881 * @apiSuccess {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial.
814882 * @apiSuccess {ObjectId} group The group of the activity (ObjectId).
815883 * @apiSucess {ObjectId} students the students who gonna attend the activity(ObjectId).
816- */
884+ */
0 commit comments