|
672 | 672 | * attainment as per Bloom's Taxanomy (L1-L6). |
673 | 673 | */ |
674 | 674 |
|
| 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 | + |
675 | 708 | // ------------------------------------------------------------------------------------------ |
676 | 709 | // Exam. |
677 | 710 | // ------------------------------------------------------------------------------------------ |
|
883 | 916 | * "err": "Error while inserting in DB" |
884 | 917 | * } |
885 | 918 | */ |
| 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 | + |
886 | 933 | // ------------------------------------------------------------------------------------------ |
887 | 934 | // Practical. |
888 | 935 | // ------------------------------------------------------------------------------------------ |
|
1037 | 1084 | * |
1038 | 1085 | * */ |
1039 | 1086 |
|
| 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 | + |
1040 | 1105 | /** |
1041 | 1106 | * @api {post} /paper/update/:id Update Paper |
1042 | 1107 | * @apiName UpdatePaper |
|
1075 | 1140 | * |
1076 | 1141 | */ |
1077 | 1142 |
|
| 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 | + |
1078 | 1164 | /** |
1079 | 1165 | * @api {post} /exam/update/:id Update Exam Details |
1080 | 1166 | * @apiName UpdateExam |
|
1585 | 1671 | * @apiSuccess {String} res Topic updated. |
1586 | 1672 | * @apiError (Error 500) DatabaseError Error in updating the database. |
1587 | 1673 | */ |
| 1674 | + |
1588 | 1675 | /** |
1589 | 1676 | * @api {post} /faculty/update/:id Update Faculty |
1590 | 1677 | * @apiName UpdateFaculty |
|
0 commit comments