|
214 | 214 | * */ |
215 | 215 |
|
216 | 216 | /** |
217 | | - * @api {post} /infrastructure/update Update infrastructure details |
| 217 | + * @api {post} /infrastructure/update/:id Update infrastructure details |
218 | 218 | * @apiName UpdateInfrastructure |
219 | 219 | * @apiGroup Infrastructure |
220 | 220 | * @apiDescription update Existing Infrastructure details |
221 | 221 | * |
| 222 | + * @apiParam {String} id The infrastructure document to update. |
222 | 223 | * @apiBody {String} id Id of the infrastructure to be updated |
223 | 224 | * @apiBody {String} [name] The name of the infrastructure. |
224 | 225 | * @apiBody {String} [type] The type of the infrastructure. |
|
276 | 277 | * */ |
277 | 278 |
|
278 | 279 | /** |
279 | | - * @api {post} /accreditation/update update accreditation details |
| 280 | + * @api {post} /accreditation/update/:id update accreditation details |
280 | 281 | * @apiName UpdateAccreditation |
281 | 282 | * @apiGroup Accreditation |
282 | 283 | * @apiDescription update Existing accreditation |
283 | 284 | * |
| 285 | + * @apiParam {String} id The accreditation document to update. |
284 | 286 | * @apiBody {String} id Id of the accreditation to be updated |
285 | 287 | * @apiBody {String} [name] Accreditation name. |
286 | 288 | * @apiBody {String} [agencyName] Agency name. |
|
361 | 363 | * |
362 | 364 | * */ |
363 | 365 | /** |
364 | | - * @api {post} /tutorial/update Update tutorial details |
| 366 | + * @api {post} /tutorial/update/:id Update tutorial details |
365 | 367 | * @apiName UpdateTutorial |
366 | 368 | * @apiGroup Tutorial |
367 | 369 | * @apiDescription update Existing Tutorial details |
368 | 370 | * |
| 371 | + * @apiParam {String} id The tutorial document to update. |
369 | 372 | * @apiBody {String} id Id of the tutorial to be updated |
370 | 373 | * @apiBody {Number} [no] The no of tutorial. |
371 | 374 | * @apiBody {String} [title] The title of tutorial. |
|
473 | 476 | * */ |
474 | 477 |
|
475 | 478 | /** |
476 | | - * @api {post} /department/update Update department |
| 479 | + * @api {post} /department/update/:id Update department |
477 | 480 | * @apiName UpdateDepartment |
478 | 481 | * @apiGroup Department |
479 | | - * @apiDescription Update Existing Department details except [yearOfStarting],[acronym] |
| 482 | + * @apiDescription Update Existing Department details except yearOfStarting, acronym |
480 | 483 | * |
| 484 | + * @apiParam {String} id The department document to update. |
481 | 485 | * @apiSuccess {String} department._id ID of document given by database. |
482 | 486 | * @apiSuccess {String} department.name Name of Infrastructure |
483 | 487 | * @apiSuccess {String} department.acronym The acronym of the Department. |
|
548 | 552 | */ |
549 | 553 |
|
550 | 554 | /** |
551 | | - * @api {post} /timetable/update Update Timetable |
| 555 | + * @api {post} /timetable/update/:id Update Timetable |
552 | 556 | * @apiName UpdateTimetable |
553 | 557 | * @apiGroup Timetable |
554 | 558 | * @apiDescription Update existing timetable data. |
555 | 559 | * |
| 560 | + * @apiParam {String} id The timetable document to update. |
556 | 561 | * @apiBody {String} id ID of the timetable to be updated. |
557 | 562 | * @apiBody {Date} [startDate] Start date of the timetable. |
558 | 563 | * @apiBody {Date} [endDate] End date of the timetable. |
|
568 | 573 | */ |
569 | 574 |
|
570 | 575 | /** |
571 | | - * @api {post} /coursework/update Update Coursework |
| 576 | + * @api {post} /coursework/update/:id Update Coursework |
572 | 577 | * @apiName UpdateCoursework |
573 | 578 | * @apiGroup Coursework |
574 | 579 | * @apiDescription Update existing coursework data. |
575 | 580 | * |
| 581 | + * @apiParam {String} id The coursework document to update. |
576 | 582 | * @apiBody {String} id ID of the Coursework to be updated. |
577 | 583 | * @apiBody {ObjectId} student ID of the student (ObjectId). |
578 | 584 | * @apiBody {String} Coursework type that is either onCampus or offCampus. |
|
670 | 676 | * @api {post} /module/add Add Module |
671 | 677 | * @apiName AddModule |
672 | 678 | * @apiGroup Module |
673 | | - * |
| 679 | + * |
674 | 680 | * @apiBody {Number} [no] Module number. |
675 | 681 | * @apiBody {String} [name] Name of the module. |
676 | 682 | * @apiBody {String} [outcome] Module outcome. |
677 | 683 | * @apiBody {String[]} [contents] Array of contents of the module. |
678 | 684 | * @apiBody {Number} [hrsPerModule] Number of hours required per module. |
679 | 685 | * @apiBody {String[]} [cognitiveLevels] Array of cognitive levels |
680 | 686 | * of attainment as per Bloom's Taxanomy (L1-L6). |
681 | | - * |
| 687 | + * |
682 | 688 | * @apiSuccess {String} res added Module |
683 | 689 | * @apiError (Error 500) Error while inserting in DB |
684 | 690 | */ |
|
687 | 693 | * @api {delete} /module/delete/:moduleId Delete Module |
688 | 694 | * @apiName DeleteModule |
689 | 695 | * @apiGroup Module |
690 | | - * |
| 696 | + * |
691 | 697 | * @apiParam {String} moduleId The ID of the Module document to delete. |
692 | 698 | * |
693 | 699 | * @apiSuccess {String} res Success message indicating the deletion. |
|
696 | 702 | */ |
697 | 703 |
|
698 | 704 | /** |
699 | | - * @api {post} /module/update/:moduleId Update Module |
| 705 | + * @api {post} /module/update/:moduleId Update Module |
700 | 706 | * @apiName UpdateModule |
701 | 707 | * @apiGroup Module |
702 | 708 | * @apiDescription Update existing module data. |
703 | 709 | * |
| 710 | + * @apiParam {String} moduleId The ID of the Module document to update. |
704 | 711 | * @apiBody {Number} [no] Module number. |
705 | 712 | * @apiBody {String} [name] Name of the module. |
706 | 713 | * @apiBody {String} [outcome] Module outcome. |
|
721 | 728 | * @api {get} /organization/list Get Organisation List |
722 | 729 | * @apiName GetOrganizationList |
723 | 730 | * @apiGroup Organization |
724 | | - * |
| 731 | + * |
725 | 732 | * @apiQuery [parent] Id of the parent of the organization |
726 | 733 | * @apiQuery [startDate] starting date of the organization |
727 | 734 | * @apiQuery [name] name of the organization |
728 | 735 | * @apiQuery [accreditations] accreditation Id of the organization |
729 | | - * |
| 736 | + * |
730 | 737 | * @apiSuccess {Orgaization[]} res array of filtered organization Doc |
731 | 738 | * @apiSuccess {ObjectId} organization.parent Id of the parent of the organization |
732 | 739 | * @apiSuccess {Date} organization.startDate starting date of the organization |
|
738 | 745 | * @api {post} /organization/add Add Organisation |
739 | 746 | * @apiName AddOrganization |
740 | 747 | * @apiGroup Organization |
741 | | - * |
| 748 | + * |
742 | 749 | * @apiBody {ObjectId} [parent] Id of the parent of the organization |
743 | 750 | * @apiBody {Date} [startDate] starting date of the organization |
744 | 751 | * @apiBody {String} [name] name of the organization |
745 | 752 | * @apiBody {ObjectId} [accreditations] accreditation Id of the organization |
746 | | - * |
| 753 | + * |
747 | 754 | * @apiSuccess {String} res added organization |
748 | 755 | * @apiError (Error 500) Error while inserting in DB |
749 | 756 | */ |
|
752 | 759 | * @api {delete} /organization/delete/:organizationId Delete Organization |
753 | 760 | * @apiName DeleteOrganization |
754 | 761 | * @apiGroup Organization |
755 | | - * |
| 762 | + * |
756 | 763 | * @apiParam {String} organizationId The ID of the Organization document to delete. |
757 | 764 | * |
758 | 765 | * @apiSuccess {String} res Success message indicating the deletion. |
|
810 | 817 | * @apiDescription Remove the existing Paper. |
811 | 818 | * @apiGroup Paper |
812 | 819 | * |
813 | | - * @apiParam {String} answersheetID The ID of the answersheet to delete. |
| 820 | + * @apiParam {String} id The ID of the Paper document to delete. |
814 | 821 | * |
815 | 822 | * @apiSuccess {String} res Paper deleted successfully. |
816 | 823 | * |
|
824 | 831 | /** |
825 | 832 | * @api {post} /assignment/add Add assignment |
826 | 833 | * @apiName Addassignment |
827 | | - * @apiGroup assignment |
| 834 | + * @apiGroup Assignment |
828 | 835 | * @apiDescription Add a new assignment. |
829 | 836 | * |
830 | 837 | * @apiBody {String} no Assignment number. |
|
896 | 903 | * @apiName UpdatePractical |
897 | 904 | * @apiGroup Practical |
898 | 905 | * |
| 906 | + * @apiParam {String} id The ID of the Practical document to delete. |
899 | 907 | * @apiBody {String} id ID of the Practical entity to update. |
900 | 908 | * @apiBody {Number} [no] New Practical number. |
901 | 909 | * @apiBody {String} [title] New title. |
|
989 | 997 | * */ |
990 | 998 |
|
991 | 999 | /** |
992 | | - * @api {post} /paper/update/ Update Paper |
| 1000 | + * @api {post} /paper/update/:id Update Paper |
993 | 1001 | * @apiName UpdatePaper |
994 | 1002 | * @apiGroup Paper |
995 | | - * @apiDescription Update Existing Paper details except |
| 1003 | + * @apiDescription Update Existing Paper details except |
996 | 1004 | * |
| 1005 | + * @apiParam {String} id The paper document to update. |
997 | 1006 | * @apiSuccess {Paper[]} res Array of Filtered Paper Doc . |
998 | 1007 | * @apiSuccess {String} paper._id ID of paper given by database. |
999 | 1008 | * @apiSuccess {String} paper.answersheetID Name of Infrastructure |
1000 | 1009 | * @apiSuccess {connector.Schema.Types.ObjectId} paper.exam associated Exam. |
1001 | 1010 | * @apiSuccess {connector.Schema.Types.ObjectId} paper.student associated Student. |
1002 | 1011 | * @apiSuccess {connector.Schema.Types.ObjectId} paper.faculty associated Faculty. |
1003 | 1012 | * @apiSuccess {Number} paper.marks The marks in the Paper. |
1004 | | - * |
| 1013 | + * |
1005 | 1014 | * @apiSuccess {String} res Paper updated successfully. |
1006 | | - * |
| 1015 | + * |
1007 | 1016 | * @apiError (Error 500) err Error while updating the data.s |
1008 | 1017 | */ |
1009 | 1018 |
|
1010 | 1019 | /** |
1011 | | - * @api {post} /assignment/update update assignment details |
| 1020 | + * @api {post} /assignment/update/:id update assignment details |
1012 | 1021 | * @apiName UpdateAssignment |
1013 | 1022 | * @apiGroup Assignment |
1014 | 1023 | * @apiDescription update Existing assignment |
1015 | 1024 | * |
| 1025 | + * @apiParam {String} id The assignment document to update. |
1016 | 1026 | * @apiBody {String} id Id of the assignment to be updated |
1017 | 1027 | * @apiBody {String} [no] Assignment number. |
1018 | 1028 | * @apiBody {String} [title] assignment title. |
1019 | 1029 | * @apiBody {String} [type] type of assignment. |
1020 | | - * @apiBody {Number} [marks] marks in assignment. |
| 1030 | + * @apiBody {Number} [marks] marks in assignment. |
1021 | 1031 | * |
1022 | 1032 | * @apiSuccess {String} res Assignment updated. |
1023 | 1033 | * @apiError (Error 500) err Error in updating database |
|
1032 | 1042 | * @apiBody {String} [no] Number of assignment. |
1033 | 1043 | * @apiBody {String} [title] Title of assignment. |
1034 | 1044 | * @apiBody {String} [type] type of assignment. |
1035 | | - * @apiBody {Number} [marks] marks in assignment. |
| 1045 | + * @apiBody {Number} [marks] marks in assignment. |
1036 | 1046 | * |
1037 | 1047 | * @apiSuccess {assignment[]} res Array of Filtered assignment Doc. |
1038 | 1048 | * @apiSuccess {String} assignment._id ID of document given by database. |
1039 | 1049 | * @apiBody {String} [no] Number of assignment. |
1040 | 1050 | * @apiBody {String} [title] Title of assignment. |
1041 | 1051 | * @apiBody {String} [type] type of assignment. |
1042 | | - * @apiBody {Number} [marks] marks in assignment. |
| 1052 | + * @apiBody {Number} [marks] marks in assignment. |
1043 | 1053 | */ |
1044 | 1054 |
|
1045 | 1055 | // ------------------------------------------------------------------------------------------ |
|
1082 | 1092 | */ |
1083 | 1093 |
|
1084 | 1094 | /** |
1085 | | - * @api {update} /semester/update/:id Request to list Semester information |
| 1095 | + * @api {update} /semester/update/:id Request to update Semester information |
1086 | 1096 | * @apiName Updatesemester |
1087 | 1097 | * @apiGroup Semester |
1088 | 1098 | * |
| 1099 | + * @apiParam {String} id The ID of the Semester document to update. |
1089 | 1100 | * @apiBody {Number} [number] Number of semester |
1090 | 1101 | * @apiBody {String} [academicYear] To show the current academic year |
1091 | 1102 | * @apiBody {String} [type] Stores the enum ODD or EVEN for semester |
1092 | 1103 | * @apiBody {Date} [startDate] Start date of the semester |
1093 | 1104 | * @apiBody {Date} [endDate] End date of the semester |
1094 | 1105 | * |
1095 | | - *@apiSuccess {String} res Semester updated. |
| 1106 | + * @apiSuccess {String} res Semester updated. |
1096 | 1107 | * @apiError (Error 500) DatabaseError Error in updating the database. |
1097 | 1108 | * |
1098 | 1109 | */ |
|
1202 | 1213 | * @api {post} /organization/update/:organizationId Update Organisation |
1203 | 1214 | * @apiName UpdateOrganization |
1204 | 1215 | * @apiGroup Organization |
1205 | | - * |
1206 | | - * @apiBody {String} organizationId The ID of the Organization document to update |
| 1216 | + * |
| 1217 | + * @apiParam {String} organizationId The ID of the organization document to update. |
1207 | 1218 | * @apiBody {ObjectId} [parent] Id of the parent of the organization |
1208 | 1219 | * @apiBody {Date} [startDate] starting date of the organization |
1209 | 1220 | * @apiBody {String} [name] name of the organization |
1210 | 1221 | * @apiBody {ObjectId} [accreditations] accreditation Id of the organization |
1211 | | - * |
| 1222 | + * |
1212 | 1223 | * @apiSuccess {String} res organization updated |
1213 | 1224 | * @apiError (Error 500) Error while inserting in DB |
1214 | 1225 | */ |
|
1218 | 1229 | * @apiName DeleteActivity |
1219 | 1230 | * @apiGroup Activity |
1220 | 1231 | * |
1221 | | - * @apiParam {String} Activity The activity document to delete. |
| 1232 | + * @apiParam {String} activity The activity document to delete. |
1222 | 1233 | * |
1223 | 1234 | * @apiSuccess {String} res Success message indicating the deletion. |
1224 | 1235 | * |
1225 | 1236 | * @apiError (Error 500) DatabaseError Error message if there was an error during the deletion. |
1226 | 1237 | */ |
1227 | 1238 |
|
1228 | 1239 | /** |
1229 | | - * @api {post} /timetable/update Update Timetable |
| 1240 | + * @api {post} /activity/update/:id Update Activity |
1230 | 1241 | * @apiName UpdateTimetable |
1231 | 1242 | * @apiGroup Timetable |
1232 | 1243 | * @apiDescription Update existing timetable data. |
1233 | 1244 | * |
| 1245 | + * @apiParam {String} id The timetable document to update. |
1234 | 1246 | * @apiBody {Date} startTime The startTime of the activity. |
1235 | 1247 | * @apiBody {Number} duration The duration of the activity (in minutes). |
1236 | 1248 | * @apiBody {ObjectId} course The course of the activity (ObjectId). |
|
1244 | 1256 | */ |
1245 | 1257 |
|
1246 | 1258 | /** |
1247 | | - * @api {post} /activity/update Update Activity. |
| 1259 | + * @api {post} /activity/update/:id Update Activity. |
1248 | 1260 | * @apiName UpdateActivity |
1249 | 1261 | * @apiGroup Activity |
1250 | 1262 | * @apiDescription Update existing activity data. |
1251 | 1263 | * |
| 1264 | + * @apiParam {String} id The activity document to update. |
1252 | 1265 | * @apiBody {Date} startTime The startTime of the activity. |
1253 | 1266 | * @apiBody {Number} duration The duration of the activity (in minutes). |
1254 | 1267 | * @apiBody {ObjectId} course The course of the activity (ObjectId). |
|
1283 | 1296 | * @apiSuccess {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
1284 | 1297 | * @apiSuccess {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
1285 | 1298 | * @apiSuccess {ObjectId} group The group of the activity (ObjectId). |
1286 | | - * @apiSucess {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 1299 | + * @apiSuccess {ObjectId} students the students who gonna attend the activity(ObjectId). |
1287 | 1300 | */ |
1288 | 1301 |
|
1289 | 1302 | /** |
|
1307 | 1320 | * @apiSuccess {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
1308 | 1321 | * @apiSuccess {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
1309 | 1322 | * @apiSuccess {ObjectId} group The group of the activity (ObjectId). |
1310 | | - * @apiSucess {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 1323 | + * @apiSuccess {ObjectId} students the students who gonna attend the activity(ObjectId). |
1311 | 1324 | */ |
1312 | 1325 |
|
1313 | 1326 | // ------------------------------------------------------------------------------------------ |
|
1357 | 1370 | */ |
1358 | 1371 |
|
1359 | 1372 | /** |
1360 | | - * @api {post} /student/update Update Student |
| 1373 | + * @api {post} /student/update/:id Update Student |
1361 | 1374 | * @apiName UpdateStudent |
1362 | 1375 | * @apiGroup Student |
1363 | 1376 | * @apiDescription Update existing student data. |
1364 | 1377 | * |
| 1378 | + * @apiParam {String} id The student document to update. |
1365 | 1379 | * @apiBody {String} ERP ID of the student. |
1366 | 1380 | * @apiBody {String} name of the student. |
1367 | 1381 | * @apiBody {Number} joining year of the student. |
|
1396 | 1410 | * @apiSuccess {String} student.division of the student. |
1397 | 1411 | * @apiSuccess {Number} student.roll no of the student. |
1398 | 1412 | * @apiSuccess {ObjectId} student.coursesOpted by the student(ObjectId). |
1399 | | - */ |
| 1413 | + */ |
0 commit comments