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

[INIT] RestDocs&Swagger 환경 세팅 #10

Merged
merged 3 commits into from
Jan 8, 2024
Merged

Conversation

thguss
Copy link
Member

@thguss thguss commented Jan 7, 2024

✨ Related Issue

📝 기능 구현 명세

  • Gradle 탭 내에서 clean, build 기능을 순서대로 실행해주세요.
  • 애플리케이션 실행 후 http://localhost:8080/swagger-ui/index.html로 접속하면 스웨거 명세서 페이지를 확인할 수 있어요.

🐥 추가적인 언급 사항

합숙 기간 중 코드 좀 더 깔끔하게 지속적으로 정리하도록 하겠습니다.

@thguss thguss added sohyeon 소현 작업 init 초기 설정 labels Jan 7, 2024
@thguss thguss requested review from csb9427 and Chan531 January 7, 2024 13:53
@thguss thguss self-assigned this Jan 7, 2024
Copy link
Contributor

@csb9427 csb9427 left a comment

Choose a reason for hiding this comment

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

제가 스웨거는 처음이라 코드에 대한 피드백을 하기엔 힘들지만 구성이 참 깔끔한 거 같아요 많이 배워갑니다

Comment on lines +23 to +27
@MockBean
TestController testController;

private final String DEFAULT_URL = "/api/v1/test";
private final String TAG = "TEST";
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

Choose a reason for hiding this comment

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

인정인정

Copy link
Member Author

Choose a reason for hiding this comment

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

@csb9427 @Chan531 감사합니다~! 앞으로 개발한 API는 이렇게 테스트 코드를 작성해야 스웨거에 포함되니 참고해주세요 :)

Copy link
Contributor

@Chan531 Chan531 left a comment

Choose a reason for hiding this comment

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

수고많으셨습니다.. 명예오비짱짱

build.gradle Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

오 제가 했던 스웨거랑 달라서 신기신기하네요

protected ObjectMapper objectMapper;

protected MockMvc mockMvc;

Copy link
Contributor

Choose a reason for hiding this comment

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

나중에 띄어쓰기 없애주시면 감사하겠습니다!ㅋㅋㅋ

Comment on lines +23 to +27
@MockBean
TestController testController;

private final String DEFAULT_URL = "/api/v1/test";
private final String TAG = "TEST";
Copy link
Contributor

Choose a reason for hiding this comment

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

인정인정

@thguss thguss merged commit 8668fc9 into develop Jan 8, 2024
1 check passed
@thguss thguss deleted the feature/#9-swagger-setting branch January 8, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
init 초기 설정 sohyeon 소현 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DOCS] Swagger+RestDocs 명세서 세팅
3 participants