|
713 | 713 | * @apiError (Error 500) DatabaseError Error message if there was an error during the deletion. |
714 | 714 | */ |
715 | 715 |
|
| 716 | +// ------------------------------------------------------------------------------------------ |
| 717 | +// Activity. |
| 718 | +// ------------------------------------------------------------------------------------------ |
| 719 | + |
| 720 | +/** |
| 721 | + * @api {post} /activity/add Add Activty. |
| 722 | + * @apiName AddActivity |
| 723 | + * @apiGroup Activity |
| 724 | + * |
| 725 | + * @apiBody {Date} startTime The startTime of the activity. |
| 726 | + * @apiBody {Number} duration The duration of the activity (in minutes). |
| 727 | + * @apiBody {ObjectId} course The course of the activity (ObjectId). |
| 728 | + * @apiBody {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 729 | + * @apiBody {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 730 | + * @apiBody {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 731 | + * @apiBody {ObjectId} group The group of the activity (ObjectId). |
| 732 | + * @apiBody {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 733 | + * |
| 734 | + * @apiSuccess {String} res Response message. |
| 735 | + * |
| 736 | + * @apiError (Error 500) DatabaseError Error while inserting in the database. |
| 737 | + * |
| 738 | + * @apiDescription Adds a new Activity to the system. |
| 739 | + */ |
| 740 | + |
| 741 | +/** |
| 742 | + * |
| 743 | + * @apiSuccessExample Success-Response: |
| 744 | + * HTTP/1.1 200 OK |
| 745 | + * { |
| 746 | + * "res": "Added activity" |
| 747 | + * } |
| 748 | + * |
| 749 | + * @apiErrorExample Error-Response: |
| 750 | + * HTTP/1.1 500 Internal Server Error |
| 751 | + * { |
| 752 | + * "err": "Error while inserting in DB" |
| 753 | + * } |
| 754 | + */ |
| 755 | + |
| 756 | +/** |
| 757 | + * @api {delete} /timetable/delete/:timetableId Delete Timetable |
| 758 | + * @apiName DeleteTimetable |
| 759 | + * @apiGroup Timetable |
| 760 | + * |
| 761 | + * @apiParam {String} timetableId The ID of the timetable document to delete. |
| 762 | + * |
| 763 | + * @apiSuccess {String} res Success message indicating the deletion. |
| 764 | + * |
| 765 | + * @apiError (Error 500) DatabaseError Error message if there was an error during the deletion. |
| 766 | + */ |
| 767 | + |
716 | 768 | /** |
717 | 769 | * @api {post} /organization/update/:organizationId Update Organisation |
718 | 770 | * @apiName UpdateOrganization |
|
727 | 779 | * @apiSuccess {String} res organization updated |
728 | 780 | * @apiError (Error 500) Error while inserting in DB |
729 | 781 | */ |
| 782 | + |
| 783 | +/** |
| 784 | + * @api {delete} /activity/delete/:activity Delete Activity. |
| 785 | + * @apiName DeleteActivity |
| 786 | + * @apiGroup Activity |
| 787 | + * |
| 788 | + * @apiParam {String} Activity The activity document to delete. |
| 789 | + * |
| 790 | + * @apiSuccess {String} res Success message indicating the deletion. |
| 791 | + * |
| 792 | + * @apiError (Error 500) DatabaseError Error message if there was an error during the deletion. |
| 793 | + */ |
| 794 | + |
| 795 | +/** |
| 796 | + * @api {post} /timetable/update Update Timetable |
| 797 | + * @apiName UpdateTimetable |
| 798 | + * @apiGroup Timetable |
| 799 | + * @apiDescription Update existing timetable data. |
| 800 | + * |
| 801 | + * @apiBody {Date} startTime The startTime of the activity. |
| 802 | + * @apiBody {Number} duration The duration of the activity (in minutes). |
| 803 | + * @apiBody {ObjectId} course The course of the activity (ObjectId). |
| 804 | + * @apiBody {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 805 | + * @apiBody {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 806 | + * @apiBody {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 807 | + * @apiBody {ObjectId} group The group of the activity (ObjectId). |
| 808 | + * @apiBody {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 809 | + * |
| 810 | + * @apiSuccess {String} res Timetable updated. |
| 811 | + */ |
| 812 | + |
| 813 | +/** |
| 814 | + * @api {post} /activity/update Update Activity. |
| 815 | + * @apiName UpdateActivity |
| 816 | + * @apiGroup Activity |
| 817 | + * @apiDescription Update existing activity data. |
| 818 | + * |
| 819 | + * @apiBody {Date} startTime The startTime of the activity. |
| 820 | + * @apiBody {Number} duration The duration of the activity (in minutes). |
| 821 | + * @apiBody {ObjectId} course The course of the activity (ObjectId). |
| 822 | + * @apiBody {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 823 | + * @apiBody {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 824 | + * @apiBody {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 825 | + * @apiBody {ObjectId} group The group of the activity (ObjectId). |
| 826 | + * @apiBody {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 827 | + * |
| 828 | + * @apiSuccess {String} res Activity updated. |
| 829 | + * @apiError (Error 500) DatabaseError Error in updating the database. |
| 830 | + */ |
| 831 | + |
| 832 | +/** |
| 833 | + * @api {get} /timetable/list Get Timetable List |
| 834 | + * @apiName GetTimetableList |
| 835 | + * @apiGroup Timetable |
| 836 | + * |
| 837 | + * @apiQuery {Date} startTime The startTime of the activity. |
| 838 | + * @apiQuery {Number} duration The duration of the activity (in minutes). |
| 839 | + * @apiQUERY {ObjectId} course The course of the activity (ObjectId). |
| 840 | + * @apiQuery {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 841 | + * @apiQuery {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 842 | + * @apiQuery {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 843 | + * @apiQuery {ObjectId} group The group of the activity (ObjectId). |
| 844 | + * @apiQuery {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 845 | + * |
| 846 | + * @apiSuccess {Date} startTime The startTime of the activity. |
| 847 | + * @apiSuccess {Number} duration The duration of the activity (in minutes). |
| 848 | + * @apiSuccess {ObjectId} course The course of the activity (ObjectId). |
| 849 | + * @apiSuccess {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 850 | + * @apiSuccess {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 851 | + * @apiSuccess {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 852 | + * @apiSuccess {ObjectId} group The group of the activity (ObjectId). |
| 853 | + * @apiSucess {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 854 | + */ |
| 855 | + |
| 856 | +/** |
| 857 | + * @api {get} /activity/list Get Activity List |
| 858 | + * @apiName GetActivityList |
| 859 | + * @apiGroup Activity |
| 860 | + * |
| 861 | + * @apiQuery {Date} startTime The startTime of the activity. |
| 862 | + * @apiQuery {Number} duration The duration of the activity (in minutes). |
| 863 | + * @apiQUERY {ObjectId} course The course of the activity (ObjectId). |
| 864 | + * @apiQuery {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 865 | + * @apiQuery {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 866 | + * @apiQuery {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 867 | + * @apiQuery {ObjectId} group The group of the activity (ObjectId). |
| 868 | + * @apiQuery {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 869 | + * |
| 870 | + * @apiSuccess {Date} startTime The startTime of the activity. |
| 871 | + * @apiSuccess {Number} duration The duration of the activity (in minutes). |
| 872 | + * @apiSuccess {ObjectId} course The course of the activity (ObjectId). |
| 873 | + * @apiSuccess {ObjectId} faculty The faculty alloted for the activity(ObjectId). |
| 874 | + * @apiSuccess {String} type The type of activity.One of possible LECTURE, PRACTICAL, TUTORIAL. |
| 875 | + * @apiSuccess {ObjectId} task The task of the activity (ObjectId).One of possible Topic,Practical,Tutorial. |
| 876 | + * @apiSuccess {ObjectId} group The group of the activity (ObjectId). |
| 877 | + * @apiSucess {ObjectId} students the students who gonna attend the activity(ObjectId). |
| 878 | + */ |
0 commit comments