Skip to content

Commit

Permalink
Merge pull request #52 from inu-appcenter/wonjeong#51-fix-endpoints
Browse files Browse the repository at this point in the history
[Feat] end-points 수정
  • Loading branch information
NARUBROWN committed Feb 10, 2024
2 parents f265275 + 98601a5 commit 3723952
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,20 @@ public ResponseEntity<List<GroupResponseDto>> searchByMemberName(final @PathVari
}

@Operation(summary = "전체 기수 목록 가져오기", description = "서버에 등록된 기수 목록을 가져옵니다.")
@GetMapping("/all-groups-years")
@GetMapping("/public/all-groups-years")
public ResponseEntity<GroupYearListResponseDto> findAllYears() {
return ResponseEntity.status(HttpStatus.OK).body(groupService.findAllYears());
}

@Operation(summary = "기수별 그룹 목록 가져오기", description = "기수와 파트 이름을 통해 기수별 그룹 목록을 가져옵니다.")
@GetMapping("/groups-by-year")
@GetMapping("/public/groups-by-year")
public ResponseEntity<List<GroupResponseDto>> findAllByYear(final @Parameter Double year,
final @Parameter String part) {
return ResponseEntity.status(HttpStatus.OK).body(groupService.findAllByYearAndPart(year, part));
}

@Operation(summary = "전체 파트 목록 가져오기", description = "서버에 등록된 파트 목록을 가져옵니다.")
@GetMapping("/all-parts")
@GetMapping("/public/all-parts")
public ResponseEntity<GroupPartListResponseDto> findAllParts() {
return ResponseEntity.status(HttpStatus.OK).body(groupService.findAllParts());
}
Expand Down

0 comments on commit 3723952

Please sign in to comment.