Skip to content

Commit

Permalink
feat: 유저의 현재 학기 수정 API 스웨거 명세 추가 (UMC-5th-Notation#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyuhyeok99 committed Feb 15, 2024
1 parent 2b83884 commit 27afa60
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import UMC.campusNote.user.dto.UserResponseDTO;
import UMC.campusNote.user.entity.User;
import UMC.campusNote.user.service.UserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import lombok.RequiredArgsConstructor;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.*;
Expand All @@ -24,7 +26,12 @@ public ApiResponse<String> get() {
return ApiResponse.onSuccess("GET:: user controller");
}


@PatchMapping("/attended-semester")
@Operation(summary = "유저의 수강 학기 수정 API",description = "유저의 수강 학기 수정 API입니다.")
@ApiResponses({
@io.swagger.v3.oas.annotations.responses.ApiResponse(responseCode = "ATTENDED_SEMESTER200",description = "수강 학기 업데이트 성공"),
})
public ApiResponse<UserResponseDTO.AttendedSemesterUpdateDTO> updateAttendedSemester(@AuthenticationPrincipal User user, @RequestBody UserRequestDTO.AttendedSemesterUpdateDTO request) {
return ApiResponse.of(ATTENDED_SEMESTER_UPDATE ,userService.updateAttendedSemester(user.getId(), request));
}
Expand Down

0 comments on commit 27afa60

Please sign in to comment.