665665 * @apiSuccess {String[]} module.cognitiveLevels Array of cognitive levels of
666666 * attainment as per Bloom's Taxanomy (L1-L6).
667667 */
668+
669+ // ------------------------------------------------------------------------------------------
670+ // Activity.
671+ // ------------------------------------------------------------------------------------------
672+
673+ /**
674+ * @api {post } /activity/add Add Activty.
675+ * @apiName AddActivity
676+ * @apiGroup Activity
677+ *
678+ * @apiBody {Date} startTime The startTime of the activity.
679+ * @apiBody {Number} duration The duration of the activity (in minutes).
680+ * @apiBody {ObjectId} course The course of the activity (ObjectId).
681+ * @apiBody {ObjectId} faculty The faculty alloted for the activity(ObjectId).
682+ * @apiBody {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL.
683+ * @apiBody {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial.
684+ * @apiBody {ObjectId} group The group of the activity (ObjectId).
685+ * @apiBody {ObjectId} students the students who gonna attend the activity(ObjectId).
686+ *
687+ * @apiSuccess {String} res Response message.
688+ *
689+ * @apiError (Error 500) DatabaseError Error while inserting in the database.
690+ *
691+ * @apiDescription Adds a new Activity to the system.
692+ */
693+
694+ /**
695+ *
696+ * @apiSuccessExample Success-Response:
697+ * HTTP/1.1 200 OK
698+ * {
699+ * "res": "Added activity"
700+ * }
701+ *
702+ * @apiErrorExample Error-Response:
703+ * HTTP/1.1 500 Internal Server Error
704+ * {
705+ * "err": "Error while inserting in DB"
706+ * }
707+ */
708+
709+ /**
710+ * @api {delete } /timetable/delete/:timetableId Delete Timetable
711+ * @apiName DeleteTimetable
712+ * @apiGroup Timetable
713+ *
714+ * @apiParam {String} timetableId The ID of the timetable document to delete.
715+ *
716+ * @apiSuccess {String} res Success message indicating the deletion.
717+ *
718+ * @apiError (Error 500) DatabaseError Error message if there was an error during the deletion.
719+ */
720+
721+ /**
722+ * @api {delete } /activity/delete/:activity Delete Activity.
723+ * @apiName DeleteActivity
724+ * @apiGroup Activity
725+ *
726+ * @apiParam {String} Activity The activity document to delete.
727+ *
728+ * @apiSuccess {String} res Success message indicating the deletion.
729+ *
730+ * @apiError (Error 500) DatabaseError Error message if there was an error during the deletion.
731+ */
732+
733+ /**
734+ * @api {post } /timetable/update Update Timetable
735+ * @apiName UpdateTimetable
736+ * @apiGroup Timetable
737+ * @apiDescription Update existing timetable data.
738+ *
739+ * @apiBody {Date} startTime The startTime of the activity.
740+ * @apiBody {Number} duration The duration of the activity (in minutes).
741+ * @apiBody {ObjectId} course The course of the activity (ObjectId).
742+ * @apiBody {ObjectId} faculty The faculty alloted for the activity(ObjectId).
743+ * @apiBody {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL.
744+ * @apiBody {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial.
745+ * @apiBody {ObjectId} group The group of the activity (ObjectId).
746+ * @apiBody {ObjectId} students the students who gonna attend the activity(ObjectId).
747+ *
748+ * @apiSuccess {String} res Timetable updated.
749+ */
750+
751+ /**
752+ * @api {post } /activity/update Update Activity.
753+ * @apiName UpdateActivity
754+ * @apiGroup Activity
755+ * @apiDescription Update existing activity data.
756+ *
757+ * @apiBody {Date} startTime The startTime of the activity.
758+ * @apiBody {Number} duration The duration of the activity (in minutes).
759+ * @apiBody {ObjectId} course The course of the activity (ObjectId).
760+ * @apiBody {ObjectId} faculty The faculty alloted for the activity(ObjectId).
761+ * @apiBody {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL.
762+ * @apiBody {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial.
763+ * @apiBody {ObjectId} group The group of the activity (ObjectId).
764+ * @apiBody {ObjectId} students the students who gonna attend the activity(ObjectId).
765+ *
766+ * @apiSuccess {String} res Activity updated.
767+ * @apiError (Error 500) DatabaseError Error in updating the database.
768+ */
769+
770+ /**
771+ * @api {get } /timetable/list Get Timetable List
772+ * @apiName GetTimetableList
773+ * @apiGroup Timetable
774+ *
775+ * @apiQuery {Date} startTime The startTime of the activity.
776+ * @apiQuery {Number} duration The duration of the activity (in minutes).
777+ * @apiQUERY {ObjectId} course The course of the activity (ObjectId).
778+ * @apiQuery {ObjectId} faculty The faculty alloted for the activity(ObjectId).
779+ * @apiQuery {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL.
780+ * @apiQuery {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial.
781+ * @apiQuery {ObjectId} group The group of the activity (ObjectId).
782+ * @apiQuery {ObjectId} students the students who gonna attend the activity(ObjectId).
783+ *
784+ * @apiSuccess {Date} startTime The startTime of the activity.
785+ * @apiSuccess {Number} duration The duration of the activity (in minutes).
786+ * @apiSuccess {ObjectId} course The course of the activity (ObjectId).
787+ * @apiSuccess {ObjectId} faculty The faculty alloted for the activity(ObjectId).
788+ * @apiSuccess {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL.
789+ * @apiSuccess {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial.
790+ * @apiSuccess {ObjectId} group The group of the activity (ObjectId).
791+ * @apiSucess {ObjectId} students the students who gonna attend the activity(ObjectId).
792+ */
793+
794+ /**
795+ * @api {get } /activity/list Get Activity List
796+ * @apiName GetActivityList
797+ * @apiGroup Activity
798+ *
799+ * @apiQuery {Date} startTime The startTime of the activity.
800+ * @apiQuery {Number} duration The duration of the activity (in minutes).
801+ * @apiQUERY {ObjectId} course The course of the activity (ObjectId).
802+ * @apiQuery {ObjectId} faculty The faculty alloted for the activity(ObjectId).
803+ * @apiQuery {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL.
804+ * @apiQuery {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial.
805+ * @apiQuery {ObjectId} group The group of the activity (ObjectId).
806+ * @apiQuery {ObjectId} students the students who gonna attend the activity(ObjectId).
807+ *
808+ * @apiSuccess {Date} startTime The startTime of the activity.
809+ * @apiSuccess {Number} duration The duration of the activity (in minutes).
810+ * @apiSuccess {ObjectId} course The course of the activity (ObjectId).
811+ * @apiSuccess {ObjectId} faculty The faculty alloted for the activity(ObjectId).
812+ * @apiSuccess {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL.
813+ * @apiSuccess {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial.
814+ * @apiSuccess {ObjectId} group The group of the activity (ObjectId).
815+ * @apiSucess {ObjectId} students the students who gonna attend the activity(ObjectId).
816+ */
0 commit comments