Skip to content
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

[Refactor] #29 Swagger 코드 스타일과 패키지 네이밍 컨벤션을 맞춰 보아요 #30

Merged
merged 7 commits into from
Oct 4, 2024

Conversation

BaeJunH0
Copy link
Contributor

@BaeJunH0 BaeJunH0 commented Oct 3, 2024

✨ 작업 내용

  • 피드백 내용 반영
    • Swagger 작성 Controller에 안하고 Controller를 구현체로 하는 Interface를 만들고, Interface에 명세 작성
    • 테스트 패키지 명 컨벤션에 맞게 변경
    • 메서드 명 변경 ( find~ -> get~ )

✨ 참고 사항

  • 현재 API 2개가 한 컨트롤러에 묶여 있는데, 이를 어떻게 효율적으로 표현해야 할 지 고민 중입니다.
    • 로그인 유무에 따라서 바뀌는 GET "/videos" 요청이 해당

⏰ 현재 버그

  • 아직 발견하지 못함

✏ Git Close

BaeJunho added 2 commits October 3, 2024 20:14
Controller를 구현체로 Interface를 만들어 명세를 작성하는 스타일 채택
@BaeJunH0 BaeJunH0 requested a review from sanghee0820 October 3, 2024 11:21
@BaeJunH0 BaeJunH0 self-assigned this Oct 3, 2024
@BaeJunH0 BaeJunH0 added the 🔨 Refactor 코드 리팩토링 label Oct 3, 2024
@BaeJunH0 BaeJunH0 requested a review from suhyeon7497 October 3, 2024 11:22
@BaeJunH0 BaeJunH0 changed the title [Refactor] #29 swagger and convention [Refactor] #29 Swagger 코드 스타일과 패키지 네이밍 컨벤션을 맞춰 보아요 Oct 3, 2024
Comment on lines +20 to +24
HttpServletRequest request,
@RequestParam(name = "influencer", required = false) List<String> influencers,
@ModelAttribute VideoSearchParams searchParams,
@RequestParam(defaultValue = "0", required = false) int page,
@RequestParam(defaultValue = "10", required = false) int size
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 잘 되나요??? 여기서 선언했을 때 잘 되는지 확인한번만 하고 알려주시면 감사하겠습니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아직 데이터가 들어간게 없어서 로직은 잘 모르겠는데, 포스트맨으로 API 요청했을때는 오류 안나고 잘되었습니다

Copy link
Contributor

@suhyeon7497 suhyeon7497 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코드 컨벤션 신경써주세요! 다른건 다 괜찮은 것 같네요!

@@ -19,15 +18,11 @@
@RestController
@RequiredArgsConstructor
@RequestMapping("/videos")
public class VideoController {
public class VideoController implements VideoControllerApiSpec{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사소하지만 코드 컨벤션에 어긋나요!

@sanghee0820 sanghee0820 merged commit 5f76bdf into weekly/5 Oct 4, 2024
@sanghee0820 sanghee0820 deleted the refactor/#29-swaggerAndConvention branch October 31, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Refactor 코드 리팩토링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants