672672 * attainment as per Bloom's Taxanomy (L1-L6).
673673 */
674674
675+ // ------------------------------------------------------------------------------------------
676+ // Attendance.
677+ // ------------------------------------------------------------------------------------------
678+
679+ /**
680+ * @api {post } /attendance/add Add Attendance
681+ * @apiName AddAttendance
682+ * @apiGroup Attendance
683+ * @apiDescription Add a new attendance.
684+ *
685+ * @apiBody {String} student Student name.
686+ * @apiBody {String} course Course name.
687+ * @apiBody {Number} monthlyAttended Monthly attendance of student.
688+ * @apiBody {Number} monthlyOccured Monthly occured.
689+ * @apiBody {Number} cumulativeAttended sum of attendance of student.
690+ * @apiBody {Number} cumulativeOccured sum of occured.
691+ *
692+ * @apiSuccess {String} res Response message.
693+ * @apiError (Error 500) UserNotFound The of the User was not found
694+ *
695+ * @apiSuccessExample Success-Response:
696+ * HTTP/1.1 200 OK
697+ * {
698+ * "res": "added attendance Example Attendance"
699+ * }
700+ *
701+ * @apiErrorExample Error-Response:
702+ * HTTP/1.1 500 Internal Server Error
703+ * {
704+ * "err": "Error while inserting in DB"
705+ * }
706+ */
707+
708+ // ------------------------------------------------------------------------------------------
709+ // Exam.
710+ // ------------------------------------------------------------------------------------------
711+
712+ /**
713+ * @api {post } /exam/add Add Exam
714+ * @apiName AddExam
715+ * @apiExam Exam
716+ * @apiDescription Add a new exam.
717+ *
718+ * @apiBody {String} title Exam title.
719+ * @apiBody {ObjectId[]} students Array of student ObjectIDs.
720+ *
721+ * @apiSuccess {String} res Response message.
722+ * @apiError (Error 500) ExamAddError Error while adding the exam
723+ *
724+ * @apiSuccessExample Success-Response:
725+ * HTTP/1.1 200 OK
726+ * {
727+ * "res": "added exam Example Exam"
728+ * }
729+ *
730+ * @apiErrorExample Error-Response:
731+ * HTTP/1.1 500 Internal Server Error
732+ * {
733+ * "err": "Error while inserting in DB"
734+ * }
735+ */
736+
675737/**
676738 * @api {post } /module/add Add Module
677739 * @apiName AddModule
854916 * "err": "Error while inserting in DB"
855917 * }
856918 */
919+
920+ /**
921+ * @api {delete } /attendance/delete/:attendanceId To delete Attendance
922+ * @apiName DeleteAttendance
923+ * @apiGroup Attendance
924+ *
925+ * @apiParam {String} attendanceId The ID of the attendance document to delete.
926+ *
927+ * @apiSuccess {String} res Success message indicating the deletion.
928+ *
929+ * @apiError (Error 500) err Error message if there was an error during the deletion.
930+ *
931+ * */
932+
857933// ------------------------------------------------------------------------------------------
858934// Practical.
859935// ------------------------------------------------------------------------------------------
9831059 * }
9841060 */
9851061
1062+ /**
1063+ * @api {delete } /exam/delete/:id Delete Exam
1064+ * @apiName DeleteExam
1065+ * @apiExam Exam
1066+ *
1067+ * @apiParam {ObjectId} id The ObjectID of the exam to delete.
1068+ *
1069+ * @apiSuccess {String} res Success message indicating the deletion.
1070+ * @apiError (Error 500) ExamDeleteError Error while deleting the exam
1071+ *
1072+ */
1073+
9861074/**
9871075 * @api {delete } /assignment/delete/:assignmentId To delete Assignment
9881076 * @apiName DeleteAssignment
9961084 *
9971085* */
9981086
1087+ /**
1088+ * @api {post } /attendance/update update attendance details
1089+ * @apiName UpdateAttendance
1090+ * @apiGroup Attendance
1091+ * @apiDescription update Existing attendance
1092+ *
1093+ * @apiBody {String} [student] Student name.
1094+ * @apiBody {String} [course] Course name.
1095+ * @apiBody {Number} [monthlyAttended] Monthly attendance of student.
1096+ * @apiBody {Number} [monthlyOccured] Monthly occured.
1097+ * @apiBody {Number} [cumulativeAttended] sum of attendance of student.
1098+ * @apiBody {Number} [cumulativeOccured] sum of occured.
1099+ *
1100+ * @apiSuccess {String} res Attendance updated.
1101+ * @apiError (Error 500) err Error in updating database
1102+ *
1103+ */
1104+
9991105/**
10001106 * @api {post } /paper/update/:id Update Paper
10011107 * @apiName UpdatePaper
10341140 *
10351141 */
10361142
1143+ /**
1144+ * @api {get } attendance/list Get Attendance List
1145+ * @apiName GetAttendance
1146+ * @apiGroup Attendance
1147+ *
1148+ * @apiBody {String} [student] Student name.
1149+ * @apiBody {String} [course] Course name.
1150+ * @apiBody {Number} [monthlyAttended] Monthly attendance of student.
1151+ * @apiBody {Number} [monthlyOccured] Monthly occured.
1152+ * @apiBody {Number} [cumulativeAttended] sum of attendance of student.
1153+ * @apiBody {Number} [cumulativeOccured] sum of occured.
1154+ *
1155+ * @apiSuccess {attendance[]} res Array of Filtered attendance Doc.
1156+ * @apiSuccess {String} attendance._id ID of document given by database.
1157+ * @apiSuccess {String} attendance.student Name of student.
1158+ * @apiSuccess {String} attendance.course Name of course.
1159+ * @apiSuccess {Number} attendance.monthlyAttended Monthly attendance of student.
1160+ * @apiSuccess {Number} attendance.cumulativeAttended sum of attendance of student.
1161+ * @apiSuccess {Number} attendance.cumulativeOccured sum of occured.
1162+ */
1163+
1164+ /**
1165+ * @api {post } /exam/update/:id Update Exam Details
1166+ * @apiName UpdateExam
1167+ * @apiExam Exam
1168+ * @apiDescription Update existing exam details.
1169+ *
1170+ * @apiParam {ObjectId} id The ObjectID of the exam to update.
1171+ * @apiBody {String} [title] Exam title.
1172+ * @apiBody {ObjectId[]} [students] Array of student ObjectIDs.
1173+ *
1174+ * @apiSuccess {String} res Exam updated.
1175+ * @apiError (Error 500) ExamUpdateError Error in updating database
1176+ *
1177+ */
1178+
10371179/**
10381180 * @api {get } assignment/list Get Assignment List
10391181 * @apiName GetAssignment
11851327 *
11861328 */
11871329
1330+ /**
1331+ * @api {get } /exam/list Get Exam List
1332+ * @apiName GetExamList
1333+ * @apiExam Exam
1334+ *
1335+ * @apiQuery {String} [title] Title of the exam.
1336+ *
1337+ * @apiSuccess {Exam[]} res Array of filtered exam documents.
1338+ * @apiSuccess {ObjectId} exam._id ObjectID of the exam document in the database.
1339+ * @apiSuccess {String} exam.title Title of the exam.
1340+ * @apiSuccess {ObjectId[]} exam.students Array of student ObjectIDs in the exam.
1341+ */
1342+
11881343/**
11891344 * @api {get } /group/list Get Group List
11901345 * @apiName GetGroupList
15161671 * @apiSuccess {String} res Topic updated.
15171672 * @apiError (Error 500) DatabaseError Error in updating the database.
15181673 */
1674+
15191675/**
15201676 * @api {post } /faculty/update/:id Update Faculty
15211677 * @apiName UpdateFaculty
16491805 * @apiSuccess {String} res topic updated.
16501806 * @apiError (Error 500) err Error in updating database
16511807 *
1652- */
1808+ */
0 commit comments