Skip to content

Commit

Permalink
Feat: CICD 테스트용 컨트롤러 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
qjvk2880 committed Apr 12, 2024
1 parent 0a1da07 commit fe334b1
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public Response<VideoSummaryInitiateResponse> initiateSummarizing(@RequestBody V
@GetMapping("/summaries/status/{videoCode}")
@ResponseStatus(HttpStatus.OK)
public Response<VideoSummaryStatusResponse> getSummarizeStatus(@PathVariable(name = "videoCode")
@Parameter(name = "videoCode", description = "영상 요약 요청에서 응답받은 비디오 코드", example = "INSTAGRAM_C4kWXhEuQpD")
String videoCode) {
@Parameter(name = "videoCode", description = "영상 요약 요청에서 응답받은 비디오 코드", example = "INSTAGRAM_C4kWXhEuQpD")
String videoCode) {
log.info("summarize status request videoCode = {}", videoCode);
return Response.createSuccess(videoSummaryService.getStatus(videoCode));
}
Expand All @@ -50,9 +50,14 @@ public Response<VideoSummaryStatusResponse> getSummarizeStatus(@PathVariable(nam
@GetMapping("/summaries/{videoSummaryId}")
@ResponseStatus(HttpStatus.OK)
public Response<VideoSummaryDto> getSummaryByVideoSummaryId(@PathVariable(name = "videoSummaryId")
@Parameter(name = "videoSummaryId", description = "영상 요약 상태에서 응답받은 videoSummaryId", example = "3")
Long videoSummaryId) {
@Parameter(name = "videoSummaryId", description = "영상 요약 상태에서 응답받은 videoSummaryId", example = "3")
Long videoSummaryId) {
log.info("summary requested videoSummaryId = {}", videoSummaryId);
return Response.createSuccess(videoSummaryService.getVideoSummaryById(videoSummaryId));
}

@GetMapping("/hi")
public Response<String> hi() {
return Response.createSuccess("hi");
}
}

0 comments on commit fe334b1

Please sign in to comment.