-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] 스포츠 전체 조회 기능 구현 #105
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다! rest docs 오류는 한 번 해결해봤는데 확인해보시고 merge하면 될 것 같습니다~
@TestConfiguration | ||
public class RestDocsConfig { | ||
|
||
private static final OperationRequestPreprocessor HOST_INFO = preprocessRequest(modifyUris() | ||
.scheme("https" ) | ||
.host("www.api.hufstreaming.site" ) | ||
.removePort(), prettyPrint() | ||
); | ||
|
||
@Bean | ||
public RestDocumentationResultHandler restDocsMockMvcConfigurationCustomizer() { | ||
return MockMvcRestDocumentation.document( | ||
"{class-name}/{method-name}", | ||
HOST_INFO, | ||
preprocessResponse(prettyPrint()) | ||
); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
위처럼 RestDocumentationResultHandler를 빈으로 등록하고 사용할 곳에서 주입 받아서 사용하면 문서들이 생겨나네요. 저도 정확한 오류 원인은 잘 모르겠지만 빈으로 등록해야 완전하게 동작하나봅니다
@Autowired
protected RestDocumentationResultHandler restDocsHandler;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그때는 되고 지금은 안된다니 . . 당혹스럽네요
해결 감사합니닷 👍🏻🫡
@Test | ||
void 모든_종목을_조회한다() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
스포츠, 종목에 대한 코멘트는 여기다가 남길게요. 확실히 영어이름은 Sport인데 한글로는 스포츠 또는 종목으로 혼용하고 있네요. 축구, 농구 등을 생각했을 땐 스포츠가 적절해보이지만 루미큐브 같은 경우는 스포츠라 볼 수 있는지 애매하긴 하네요.
종목이 더 포괄적인 의미를 담고 있는 것 같긴한데 용어 통일을 해야한다면 현재로서는 스포츠가 더 적절한것 같긴해요.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 확인했습니당
스포츠로 용어 통일하도록 할게요!
🌍 이슈 번호
📝 구현 내용
🍀 확인해야 할 부분