Skip to content

[feature] OpenAPI(Swagger) API 문서 도입 - #170

Merged
gihhyeon merged 1 commit into
developfrom
feat/169-openapi-swagger
Sep 15, 2026
Merged

gihhyeon merged 1 commit into
developfrom
feat/169-openapi-swagger

Conversation

@gihhyeon

@gihhyeon gihhyeon commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

요약

Notion으로 관리하던 API 계약을 springdoc-openapi 기반 문서로 전환한다. 운영(prod)에서는 비활성화한다.

What — 무엇을 바꿨나

  • springdoc-openapi 의존성 추가 및 OpenApiConfig(JWT bearerAuth) 설정
  • JWT 필터에 swagger 경로 허용, dev 토큰 API는 문서에서 제외
  • prod 프로파일에서 Swagger 비활성화

Why — 왜 필요한가

수기 문서는 코드와 어긋나기 쉽다. 코드 기반 자동 문서로 항상 최신 상태를 유지한다.

How — 어떻게 구현했나

Spring Boot 3.4(MVC) 기준 springdoc-openapi-starter-webmvc-ui 사용. ApiResponse<T> 래퍼가 스키마에 자동 반영되어 1단계는 인프라 세팅만 진행.

체크리스트

  • 불필요한 주석/코드 제거
  • 테스트 추가/갱신 및 통과 (./gradlew test)
  • 공개 계약 영향 확인 (엔드포인트·응답 형태 변경 시 범위 명시)

관련 이슈

기타 / 리뷰 포인트

  • 접근(local/dev): /swagger-ui.html, /v3/api-docs
  • 컨트롤러별 @Tag/@Operation 상세화는 2단계로 별도 이슈 분리 예정

@gihhyeon gihhyeon self-assigned this Sep 15, 2026
@gihhyeon gihhyeon added the ✨ Feature 기능 개발 label Sep 15, 2026
@gihhyeon
gihhyeon merged commit 90869cc into develop Sep 15, 2026
2 checks passed
@gihhyeon gihhyeon mentioned this pull request Sep 15, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feature 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] OpenAPI(Swagger) API 문서 도입

1 participant