|
695 | 695 | * } |
696 | 696 | */ |
697 | 697 |
|
| 698 | +// ------------------------------------------------------------------------------------------ |
| 699 | +// Semester |
| 700 | +// ------------------------------------------------------------------------------------------ |
| 701 | +/** |
| 702 | + * @api {post} /semester/add Request to add Semester information |
| 703 | + * @apiName Addsemester |
| 704 | + * @apiGroup Semester |
| 705 | + * |
| 706 | + * @apiQuery {Number} [number] Number of semester |
| 707 | + * @apiQuery {String} [academicYear] To show the current academic year |
| 708 | + * @apiQuery {String} [type] Stores the enum ODD or EVEN for semester |
| 709 | + * @apiQuery {Date} [startDate] Start date of the semester |
| 710 | + * @apiQuery {Date} [endDate] End date of the semester |
| 711 | + * |
| 712 | + * @apiSuccess {String} res Response message . |
| 713 | + * @apiError (Error 500) DatabaseError Err message if there is an error inserting into the database. |
| 714 | + * |
| 715 | + */ |
| 716 | + |
| 717 | +/** |
| 718 | + * @api {get} /semester/list Request to list Semester information |
| 719 | + * @apiName semesterlist |
| 720 | + * @apiGroup Semester |
| 721 | + * |
| 722 | + * @apiQuery {Number} [number] Number of semester |
| 723 | + * @apiQuery {String} [academicYear] To show the current academic year |
| 724 | + * @apiQuery {String} [type] Stores the enum ODD or EVEN for semester |
| 725 | + * @apiQuery {Date} [startDate] Start date of the semester |
| 726 | + * @apiQuery {Date} [endDate] End date of the semester |
| 727 | + * |
| 728 | + * @apiSuccess {semester[]} res Array of Filtered semester Doc. |
| 729 | + * @apiSuccess {Number} semester.number Number of semester |
| 730 | + * @apiSuccess {String} semester.academicYear To show the current academic year of the semester |
| 731 | + * @apiSuccess {String} semester.type Stores the enum ODD or EVEN for semester |
| 732 | + * @apiSuccess {Date} semester.startDate Start date of the semester |
| 733 | + * @apiSuccess {Date} semester.endDate End date of the semester |
| 734 | + * |
| 735 | + */ |
| 736 | + |
| 737 | +/** |
| 738 | + * @api {update} /semester/update/:id Request to list Semester information |
| 739 | + * @apiName Updatesemester |
| 740 | + * @apiGroup Semester |
| 741 | + * |
| 742 | + * @apiBody {Number} [number] Number of semester |
| 743 | + * @apiBody {String} [academicYear] To show the current academic year |
| 744 | + * @apiBody {String} [type] Stores the enum ODD or EVEN for semester |
| 745 | + * @apiBody {Date} [startDate] Start date of the semester |
| 746 | + * @apiBody {Date} [endDate] End date of the semester |
| 747 | + * |
| 748 | + *@apiSuccess {String} res Semester updated. |
| 749 | + * @apiError (Error 500) DatabaseError Error in updating the database. |
| 750 | + * |
| 751 | + */ |
| 752 | + |
| 753 | +/** |
| 754 | +* @api {delete} /semester/delete/:id Request to list Semester information |
| 755 | +* @apiName Deletesemester |
| 756 | +* @apiGroup Semester |
| 757 | +* |
| 758 | +* @apiParam {String} id The ID of the Semester document to delete. |
| 759 | +* |
| 760 | +* @apiSuccess {String} res Success message indicating the deletion. |
| 761 | +* |
| 762 | +* @apiError (Error 500) DatabaseError Error message if there was an error during the deletion. |
| 763 | +*/ |
| 764 | + |
| 765 | + |
| 766 | +// ------------------------------------------------------------------------------------------ |
| 767 | +// Activity. |
| 768 | +// ------------------------------------------------------------------------------------------ |
| 769 | + |
| 770 | +/** |
| 771 | + * @api {post} /activity/add Add Activty. |
| 772 | + * @apiName AddActivity |
| 773 | + * @apiGroup Activity |
| 774 | + * |
| 775 | + * @apiBody {Date} startTime The startTime of the activity. |
| 776 | + * @apiBody {Number} duration The duration of the activity (in minutes). |
| 777 | + * @apiBody {ObjectId} course The course of the activity (ObjectId). |
| 778 | + * @apiBody {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 779 | + * @apiBody {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 780 | + * @apiBody {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 781 | + * @apiBody {ObjectId} group The group of the activity (ObjectId). |
| 782 | + * @apiBody {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 783 | + * |
| 784 | + * @apiSuccess {String} res Response message. |
| 785 | + * |
| 786 | + * @apiError (Error 500) DatabaseError Error while inserting in the database. |
| 787 | + * |
| 788 | + * @apiDescription Adds a new Activity to the system. |
| 789 | + * |
| 790 | + * @apiSuccessExample Success-Response: |
| 791 | + * HTTP/1.1 200 OK |
| 792 | + * { |
| 793 | + * "res": "Added activity" |
| 794 | + * } |
| 795 | + * |
| 796 | + * @apiErrorExample Error-Response: |
| 797 | + * HTTP/1.1 500 Internal Server Error |
| 798 | + * { |
| 799 | + * "err": "Error while inserting in DB" |
| 800 | + * } |
| 801 | + */ |
| 802 | + |
698 | 803 | /** |
699 | 804 | * @api {delete} /group/delete/:id Delete Group |
700 | 805 | * @apiName DeleteGroup |
|
734 | 839 | * @apiSuccess {String} group.title Title of the group. |
735 | 840 | * @apiSuccess {ObjectId[]} group.students Array of student ObjectIDs in the group. |
736 | 841 | */ |
| 842 | +/** |
| 843 | + * @api {delete} /timetable/delete/:timetableId Delete Timetable |
| 844 | + * @apiName DeleteTimetable |
| 845 | + * @apiGroup Timetable |
| 846 | + * |
| 847 | + * @apiParam {String} timetableId The ID of the timetable document to delete. |
| 848 | + * |
| 849 | + * @apiSuccess {String} res Success message indicating the deletion. |
| 850 | + * |
| 851 | + * @apiError (Error 500) DatabaseError Error message if there was an error during the deletion. |
| 852 | + */ |
| 853 | + |
| 854 | +/** |
| 855 | + * @api {delete} /activity/delete/:activity Delete Activity. |
| 856 | + * @apiName DeleteActivity |
| 857 | + * @apiGroup Activity |
| 858 | + * |
| 859 | + * @apiParam {String} Activity The activity document to delete. |
| 860 | + * |
| 861 | + * @apiSuccess {String} res Success message indicating the deletion. |
| 862 | + * |
| 863 | + * @apiError (Error 500) DatabaseError Error message if there was an error during the deletion. |
| 864 | + */ |
| 865 | + |
| 866 | +/** |
| 867 | + * @api {post} /timetable/update Update Timetable |
| 868 | + * @apiName UpdateTimetable |
| 869 | + * @apiGroup Timetable |
| 870 | + * @apiDescription Update existing timetable data. |
| 871 | + * |
| 872 | + * @apiBody {Date} startTime The startTime of the activity. |
| 873 | + * @apiBody {Number} duration The duration of the activity (in minutes). |
| 874 | + * @apiBody {ObjectId} course The course of the activity (ObjectId). |
| 875 | + * @apiBody {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 876 | + * @apiBody {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 877 | + * @apiBody {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 878 | + * @apiBody {ObjectId} group The group of the activity (ObjectId). |
| 879 | + * @apiBody {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 880 | + * |
| 881 | + * @apiSuccess {String} res Timetable updated. |
| 882 | + */ |
| 883 | + |
| 884 | +/** |
| 885 | + * @api {post} /activity/update Update Activity. |
| 886 | + * @apiName UpdateActivity |
| 887 | + * @apiGroup Activity |
| 888 | + * @apiDescription Update existing activity data. |
| 889 | + * |
| 890 | + * @apiBody {Date} startTime The startTime of the activity. |
| 891 | + * @apiBody {Number} duration The duration of the activity (in minutes). |
| 892 | + * @apiBody {ObjectId} course The course of the activity (ObjectId). |
| 893 | + * @apiBody {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 894 | + * @apiBody {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 895 | + * @apiBody {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 896 | + * @apiBody {ObjectId} group The group of the activity (ObjectId). |
| 897 | + * @apiBody {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 898 | + * |
| 899 | + * @apiSuccess {String} res Activity updated. |
| 900 | + * @apiError (Error 500) DatabaseError Error in updating the database. |
| 901 | + */ |
| 902 | + |
| 903 | +/** |
| 904 | + * @api {get} /timetable/list Get Timetable List |
| 905 | + * @apiName GetTimetableList |
| 906 | + * @apiGroup Timetable |
| 907 | + * |
| 908 | + * @apiQuery {Date} startTime The startTime of the activity. |
| 909 | + * @apiQuery {Number} duration The duration of the activity (in minutes). |
| 910 | + * @apiQUERY {ObjectId} course The course of the activity (ObjectId). |
| 911 | + * @apiQuery {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 912 | + * @apiQuery {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 913 | + * @apiQuery {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 914 | + * @apiQuery {ObjectId} group The group of the activity (ObjectId). |
| 915 | + * @apiQuery {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 916 | + * |
| 917 | + * @apiSuccess {Date} startTime The startTime of the activity. |
| 918 | + * @apiSuccess {Number} duration The duration of the activity (in minutes). |
| 919 | + * @apiSuccess {ObjectId} course The course of the activity (ObjectId). |
| 920 | + * @apiSuccess {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 921 | + * @apiSuccess {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 922 | + * @apiSuccess {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 923 | + * @apiSuccess {ObjectId} group The group of the activity (ObjectId). |
| 924 | + * @apiSucess {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 925 | + */ |
| 926 | + |
| 927 | +/** |
| 928 | + * @api {get} /activity/list Get Activity List |
| 929 | + * @apiName GetActivityList |
| 930 | + * @apiGroup Activity |
| 931 | + * |
| 932 | + * @apiQuery {Date} startTime The startTime of the activity. |
| 933 | + * @apiQuery {Number} duration The duration of the activity (in minutes). |
| 934 | + * @apiQUERY {ObjectId} course The course of the activity (ObjectId). |
| 935 | + * @apiQuery {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 936 | + * @apiQuery {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 937 | + * @apiQuery {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 938 | + * @apiQuery {ObjectId} group The group of the activity (ObjectId). |
| 939 | + * @apiQuery {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 940 | + * |
| 941 | + * @apiSuccess {Date} startTime The startTime of the activity. |
| 942 | + * @apiSuccess {Number} duration The duration of the activity (in minutes). |
| 943 | + * @apiSuccess {ObjectId} course The course of the activity (ObjectId). |
| 944 | + * @apiSuccess {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 945 | + * @apiSuccess {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 946 | + * @apiSuccess {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 947 | + * @apiSuccess {ObjectId} group The group of the activity (ObjectId). |
| 948 | + * @apiSucess {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 949 | + */ |
0 commit comments