Skip to content

Commit

Permalink
Merge pull request #350 from SWM-NM/feat/#349
Browse files Browse the repository at this point in the history
♻️ [REFACTOR] 테스트 기록 URI 변경 #349
  • Loading branch information
miiiinju1 authored Sep 23, 2023
2 parents 4f9d4b8 + bb50e13 commit 8df6d4b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import java.util.List;

@RestController
@RequestMapping("/record")
@RequestMapping("/tests")
@Tag(name = "MemberController", description = "테스트 기록과 관련된 컨트롤러")
@RequiredArgsConstructor
public class TestRecordController {
Expand All @@ -27,12 +27,12 @@ public class TestRecordController {
private final TestDetailsService testDetailsService;

private final RatingService ratingService;
@GetMapping("/grass")
@GetMapping("/heatmaps")
@Operation(summary = "사용자 히트맵 분석 데이터", description = "사용자가 테스트를 본 결과를 바탕으로 히트맵 분석 데이터를 보여줍니다.")
public ResponseEntity<List<GrassDto>> memberRecordGrass() {
return new ResponseEntity<>(getGrassService.getGrassDtos(), HttpStatus.OK);
}
@GetMapping("/graph")
@GetMapping("/graphs")
@Operation(summary = "사용자 그래프 분석 데이터", description = "사용자가 테스트를 본 결과를 바탕으로 그래프 분석 데이터를 보여줍니다.")
public ResponseEntity<List<GraphDto>> memberRecordGraph() {
return new ResponseEntity<>(getGraphService.getGraphDtos(), HttpStatus.OK);
Expand All @@ -49,7 +49,7 @@ public ResponseEntity<List<RatingGraphDto>> memberRatingGraph(){
return new ResponseEntity<>(ratingService.getRatingGraphSinceOneYear(), HttpStatus.OK);
}

@GetMapping("/test-info/{testId}")
@GetMapping("/{testId}")
@Operation(summary = "사용자 테스트 기록 상세 보기", description = "사용자가 진행한 특정 테스트의 상세보기를 클릭한 경우 테스트 상세 기록을 보여줍니다.")
public ResponseEntity<TestRecordDto> testRecordInfo(@PathVariable Long testId) {
return new ResponseEntity<>(testDetailsService.getTestRecordDtoByTestId(testId), HttpStatus.OK);
Expand Down

0 comments on commit 8df6d4b

Please sign in to comment.