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

[feat] swagger 설정 기능 구현 #31

Merged
merged 4 commits into from
Oct 2, 2024
Merged

Conversation

jeongeungyeong
Copy link
Contributor

Issue

PR 타입(하나 이상의 PR 타입을 선택해주세요)

  • 기능 추가
  • 기능 삭제
  • 버그 수정
  • 의존성, 환경 변수, 빌드 관련 코드 업데이트

반영 브랜치

ex) feat/create_swagger -> dev2

변경 사항

  • swagger 의존성 추가
  • swaggerConfig 설정
  • webSecurity swagger 관련 모든 권한 허용
  • 팀 노션에 swagger-public-docs 바로가기 추가

테스트 결과

swagger 스크린샷 2024-10-02 오전 7 31 39

@jeongeungyeong jeongeungyeong self-assigned this Oct 1, 2024
@jeongeungyeong jeongeungyeong linked an issue Oct 1, 2024 that may be closed by this pull request
4 tasks
Copy link
Contributor

@jw427 jw427 left a comment

Choose a reason for hiding this comment

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

고생하셨어요!

@Configuration
public class SwaggerConfig {
@Bean
public GroupedOpenApi publicApi() {
Copy link
Contributor

Choose a reason for hiding this comment

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

제가 GroupedOpenApi는 안써봐서 그러는데 GroupedOpenApi는 어떤 역할을 하나요?

Copy link
Contributor

@rhaehf rhaehf left a comment

Choose a reason for hiding this comment

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

springdoc으로 하셨네요! 좋습니당 수고하셨어요~

@rhaehf rhaehf requested a review from jw427 October 2, 2024 03:01
@@ -27,6 +27,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.authorizeRequests(auth -> auth
.requestMatchers("/api/users/login", "/api/users/signup").permitAll()
.requestMatchers("/api/datapipes/**").permitAll() // 데이터파이프라인 모든 권한 허용
Copy link
Contributor

Choose a reason for hiding this comment

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

여기는 requestMarchers를 계속 따로 추가한 이유는 주석달기 위해서 하신걸까요??

@K-0joo
Copy link
Contributor

K-0joo commented Oct 2, 2024

수고하셨습니다!!

@jeongeungyeong jeongeungyeong merged commit 0e301e7 into dev2 Oct 2, 2024
@jeongeungyeong jeongeungyeong deleted the feat/create_swagger branch October 2, 2024 09:25
@jeongeungyeong jeongeungyeong changed the title swagger 설정 기능 구현 [feat] swagger 설정 기능 구현 Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Swagger 기능 추가
4 participants