-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[CHORE] Rest Docs 의존성 추가 및 세팅 #94
- Loading branch information
Showing
20 changed files
with
2,540 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
= 훕치치 관객 서버 API 문서 | ||
:doctype: book | ||
:icons: font | ||
:source-highlighter: highlightjs | ||
:toc: left | ||
:toclevels: 2 | ||
:sectlinks: | ||
|
||
== 응원톡 API | ||
|
||
=== 응원톡 저장 | ||
|
||
operation::cheer-talk-controller-test/응원톡을_저장한다[snippets='http-request,request-fields,http-response'] | ||
|
||
=== 응원톡 조회 | ||
|
||
operation::cheer-talk-query-controller-test/응원톡을_조회한다[snippets='http-request,query-parameters,path-parameters,http-response,response-fields'] | ||
|
||
== 게임 API | ||
|
||
=== 게임 상세 조회 | ||
|
||
operation::game-query-controller-test/게임을_상세_조회한다[snippets='http-request,path-parameters,http-response,response-fields'] | ||
|
||
=== 게임 영상 조회 | ||
|
||
operation::game-query-controller-test/게임_영상_id를_조회한다[snippets='http-request,path-parameters,http-response,response-fields'] | ||
|
||
=== 게임 목록 조회 | ||
|
||
operation::game-query-controller-test/게임_목록을_조회한다[snippets='http-request,query-parameters,http-response,response-fields'] | ||
|
||
=== 게임 응원 횟수 조회 | ||
|
||
operation::game-query-controller-test/응원_횟수를_조회한다[snippets='http-request,path-parameters,http-response,response-fields'] | ||
|
||
=== 게임 라인업 조회 | ||
|
||
operation::game-query-controller-test/라인업을_조회한다[snippets='http-request,path-parameters,http-response,response-fields'] | ||
|
||
== 응원 횟수 API | ||
|
||
=== 응원 횟수 업데이트 | ||
|
||
operation::game-controller-test/응원_횟수를_업데이트한다[snippets='http-request,request-fields,http-response'] | ||
|
||
== 신고 API | ||
|
||
=== 응원톡 신고 | ||
|
||
operation::report-controller-test/응원톡을_신고한다[snippets='http-request,request-fields,http-response'] | ||
|
||
== 리그 API | ||
|
||
=== 리그 전체 조회 | ||
|
||
operation::league-query-controller-test/리그_전체를_조회한다[snippets='http-request,http-response,response-fields'] | ||
|
||
=== 리그에 해당하는 스포츠 종목 조회 | ||
|
||
operation::league-query-controller-test/리그의_해당하는_스포츠_전체를_조회한다[snippets='http-request,path-parameters,http-response,response-fields'] | ||
|
||
== 타임라인 API | ||
=== 게임의 타임라인 조회 | ||
operation::timeline-query-controller-test/타임라인을_조회한다[snippets='http-request,path-parameters,http-response,response-fields'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 5 additions & 6 deletions
11
...r/query/dto/response/CommentResponse.java → ...query/dto/response/CheerTalkResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 5 additions & 6 deletions
11
src/main/java/com/sports/server/query/presentation/CheerTalkQueryController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
package com.sports.server.query.presentation; | ||
|
||
import com.sports.server.query.dto.response.CommentResponse; | ||
import com.sports.server.common.dto.PageRequestDto; | ||
import com.sports.server.query.application.CheerTalkQueryService; | ||
import com.sports.server.query.dto.response.CheerTalkResponse; | ||
import java.util.List; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.ModelAttribute; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import java.util.List; | ||
|
||
@RestController | ||
@RequiredArgsConstructor | ||
public class CheerTalkQueryController { | ||
|
||
private final CheerTalkQueryService cheerTalkQueryService; | ||
|
||
@GetMapping("games/{gameId}/cheer-talks") | ||
public ResponseEntity<List<CommentResponse>> getAllComments(@PathVariable final Long gameId, | ||
@ModelAttribute final PageRequestDto pageRequest) { | ||
public ResponseEntity<List<CheerTalkResponse>> getAllCheerTalks(@PathVariable final Long gameId, | ||
@ModelAttribute final PageRequestDto pageRequest) { | ||
|
||
return ResponseEntity.ok(cheerTalkQueryService.getCommentsByGameId(gameId, pageRequest)); | ||
return ResponseEntity.ok(cheerTalkQueryService.getCheerTalksByGameId(gameId, pageRequest)); | ||
} | ||
} |
Oops, something went wrong.