Skip to content

Commit

Permalink
[2 - 4 단계 방탈출 예약 결제 / 배포] 몰리(김지민) 미션 제출합니다. (#102)
Browse files Browse the repository at this point in the history
* test(/resources): 프론트 코드 수정

* test(PaymentRestClientConfiguration): RestClient.Builder를 Bean으로 등록하는 메서드 추출

* test(TossRestClientTest): 실제 요청이 아닌 MockRestServiceServer을 통해 테스트 변경

* docs(README.md): 2단계 요구사항 작성

* refactor(PaymentInfoFromClient): 기존 http client로부터 가져온 결제 정보 객체 이름 변경

* feat(Payment): 결제 테이블 설계

* feat(ReservationService): 예약 생성 시 결제 저장 로직 추가

* feat(ReservationService): 예약 조회 시 결제 정보 조회 로직 추가

- ReservationRepository 결제에 대해 outer join한 예약 객체 조회 메서드 추가

* feat(data.sql): payment 더미 데이터 추가

* feat(GlobalExceptionHandler): ResourceAccessException 핸들링 추가

* refactor(Payment): BaseEntity를 상속받도록 변경

* style(/js): 완료된 TODO 제거

* style(/src): import 문 최적화

* fix(PaymentInfoFromClient): 결제 클라이언트로부터 받아오는 결제 정보 필드 이름 변경

* fix(WaitingService): 대기 삭제의 에러 메시지 응답 시 회원의 식별자가 아닌 대기 식별자 값을 전달로 변경

* chore(build.gradle): springdoc 의존성 추가

* docs(WaitingControllerApi): Waiting API 문서화를 위한 swagger 코드 작성

* docs(AuthOperationCustomizer): 인증 문서화 시 관련 요청 및 응답 규격을 커스터마이징한 OperationCustomizer 구현

* docs(AdminWaitingControllerApi): AdminWaiting API 문서화를 위한 swagger 코드 작성

* docs(ThemeControllerApi): Theme API 문서화를 위한 swagger 코드 작성

* docs(ReservationTimeControllerApi): ReservationTime API 문서화를 위한 swagger 코드 작성

* docs(MemberControllerApi): Member API 문서화를 위한 swagger 코드 작성

* docs(AuthControllerApi): 회원 인증 API 문서화를 위한 swagger 코드 작성

* docs(AdminReservationControllerApi): Admin 권한의 Reservation API 문서화를 위한 swagger 코드 작성

* docs(ReservationControllerApi): Reservation API 문서화를 위한 swagger 코드 작성

* feat(SpringDocConfiguration): 문서화를 위한 swagger 설정 파일 작성

* docs(Api): 요청 성공 시 리턴 타입 객체를 스웨거 스키마로 등록

* docs(erd): erd 최신화

* fix(ReservationIntegrationTest): 응답 객체가 변한 API 테스트 수정

* fix(ReservationIntegrationTest): Fake 클라이언트에서 MockBean으로 변경

* fix(GlobalExceptionHandler): Logger 이름에서 오타 제거

* refactor(ReservationServiceTest): FakePaymentClient 제거 및 MockBean으로 변경

* refactor(ReservationService): @transactional 설정 추가

* refactor(ReservationServiceTest): @DataJpaTest에서 @SpringBootTest 테스트로 전환 및 예약 취소 시 갱신 확인 로직 변경

* refactor(build.gradle): rest docs 의존성 추가 및 설정 작성

* refactor(/controller/ControllerApi): swagger 작성 컨트롤러 파일들의 줄바꿈 조정

* docs(IntegrationTest): rest docs 설정파일 추가 및 각 rest-assured 요청 시 스펙을 문서 추가하는 로직 작성

* docs(/src/docs): 각 API 별 adoc 파일 추가

* docs(/src/docs): 개선한 erd로 변경 및 기존 docs 파일의 위치를 /src 아래로 이동
  • Loading branch information
jminkkk authored Jun 13, 2024
1 parent f0cac3e commit e4a864b
Show file tree
Hide file tree
Showing 62 changed files with 1,391 additions and 1,128 deletions.
30 changes: 30 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'org.springframework.boot' version '3.2.4'
id 'io.spring.dependency-management' version '1.1.4'
id 'java'
id "org.asciidoctor.jvm.convert" version "3.3.2"
}

group = 'nextstep'
Expand All @@ -12,13 +13,27 @@ repositories {
mavenCentral()
}

ext {
snippetsDir = file('build/generated-snippets')
}

configurations {
asciidoctorExtensions
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-validation'

asciidoctorExtensions 'org.springframework.restdocs:spring-restdocs-asciidoctor'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'org.springframework.restdocs:spring-restdocs-restassured'

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.5.0'

implementation 'io.jsonwebtoken:jjwt:0.9.1'
implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359'

Expand All @@ -32,4 +47,19 @@ dependencies {

test {
useJUnitPlatform()
outputs.dir snippetsDir
}

asciidoctor {
inputs.dir snippetsDir
configurations "asciidoctorExtensions"
dependsOn test
}

bootJar {
dependsOn asciidoctor

from( "${asciidoctor.outputDir}") {
into 'static/docs'
}
}
Loading

0 comments on commit e4a864b

Please sign in to comment.