Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/handlers/assignments/assignments.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ func (a *assignmentsHandler) DeleteAttachment(context *gin.Context) {
// @Description Get assignments of the current session
// @Tags assignments
// @Produce json
// @Param page query int false "Page number >= 1"
// @Success 200 {array} dto.AssignmentResponseDTO "List of assignments"
// @Failure 400 {object} dto.ErrorResponse "Invalid page number"
// @Failure 403 {object} dto.ErrorResponse "Bad session"
Expand Down
2 changes: 2 additions & 0 deletions internal/handlers/exams/exams.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func (h *examsHandler) PatchExam(c *gin.Context) {
// @Description Retrieve all exams for the current session
// @Tags exams
// @Produce json
// @Param page query int false "Page number >= 1"
// @Success 200 {array} dto.ExamResponseDTO "List of exams"
// @Failure 400 {object} dto.ErrorResponse "Invalid page number"
// @Failure 403 {object} dto.ErrorResponse "Bad session"
Expand Down Expand Up @@ -201,6 +202,7 @@ func (h *examsHandler) GetExamsOfSession(c *gin.Context) {
// @Tags exams
// @Produce json
// @Param id path string true "Course ID"
// @Param page query int false "Page number >= 1"
// @Success 200 {array} dto.ExamResponseDTO "List of exams"
// @Failure 400 {object} dto.ErrorResponse "Invalid course ID"
// @Failure 403 {object} dto.ErrorResponse "Bad session"
Expand Down