Skip to content

Commit

Permalink
[docs] Swagger 에피소드 조회 API 설명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwls16071 committed Dec 9, 2024
1 parent edb2f84 commit 770f1b7
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.example.aniwhere.domain.episodes.dto.EpisodesDto;
import com.example.aniwhere.service.episodes.EpisodesService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
Expand All @@ -16,11 +17,14 @@
@RestController
@RequestMapping("/api")
@RequiredArgsConstructor
@Tag(name = "Mail", description = "에피소드 관련 API")
@Tag(name = "Episode", description = "에피소드 관련 API")
public class EpisodesApiController {

private final EpisodesService episodesService;

@Operation(
summary = "애니메이션 ID값에 대한 전체 에피소드 조회",
description = "특정 애니메이션의 모든 에피소드를 페이지 단위로 조회합니다."
)
@GetMapping("/episodes/{animeId}")
public Page<EpisodesDto> getEpisodes(@PathVariable(name = "animeId") Long animeId, Pageable pageable) {
return episodesService.getEpisodes(animeId, pageable);
Expand Down

0 comments on commit 770f1b7

Please sign in to comment.