Skip to content

Commit

Permalink
BE: [fix] 세션 내 학생 조회 Endpoint 수정 #6
Browse files Browse the repository at this point in the history
BE: [fix] 세션 내 학생 조회 Endpoint 수정 #6
  • Loading branch information
JongbeomLee623 authored Dec 1, 2024
2 parents 9d0ed84 + 4e782e0 commit 772947d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ public ResponseEntity<BaseResponse<Map<String, String>>> registerExam(@RequestBo
}

// 특정 시험 ID에 해당하는 세션 내 모든 학생들의 리스트를 조회
@GetMapping("/{examId}/sessions")
@GetMapping("/{examId}/users")
public ResponseEntity<BaseResponse<UserListResponseDTO>> getUserListByExamId(@PathVariable Integer examId) {
UserListResponseDTO response = examService.getUserListByExamId(examId);
return ResponseEntity.ok(new BaseResponse<>(response, "학생 리스트 조회 성공"));
}

// 특정 시험 ID와 사용자 ID에 해당하는 학생의 상세 정보를 조회
@GetMapping("/{examId}/sessions/{userId}")
@GetMapping("/{examId}/users/{userId}")
public ResponseEntity<BaseResponse<UserDetailResponseDTO>> getUserDetailByExamIdAndUserId(
@PathVariable Integer examId,
@PathVariable Integer userId) {
Expand Down

0 comments on commit 772947d

Please sign in to comment.