-
Notifications
You must be signed in to change notification settings - Fork 1
[Test] Auth API 테스트 #220
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
Merged
Merged
[Test] Auth API 테스트 #220
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
2908bc2
test #196: DeliveryAddressController WebMVC 테스트 및 문서화
willjsw 78a2b56
refactor #196: DeliveryController 태스트 결과에 따른 기존 코드 수정
willjsw 3400047
refactor #196: ManagerController API 수정 결과 문서 반영
willjsw 8c92344
refactor #196: EMPTY_REQUEST 에러코드 레코드 클래스 변경(Member -> Global)
willjsw f739dc2
Merge branch 'test/#196-delivery-address-api' into test/#211-auth-api
willjsw 22ad884
refactor #211: 패키지명 오타 수정
willjsw 9a05709
refactor #211: TestConfig 중앙화
willjsw a888fa5
test #211: AuthController API 테스트 및 문서화
willjsw afb329f
refactor #211: AuthController 태스트 결과에 따른 기존 코드 수정
willjsw bcad09d
refactor #211: 로그아웃 API 명세 추가 및 섹션 헤더 추가
willjsw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| === 회원 로그인 | ||
| `POST /auth/login` | ||
|
|
||
| 요청 본문: | ||
| include::{snippets}/member-login/request-fields.adoc[] | ||
|
|
||
| 응답 본문: | ||
| include::{snippets}/member-login/response-fields.adoc[] | ||
|
|
||
| 응답 헤더 (쿠키): | ||
| include::{snippets}/member-login/response-headers.adoc[] | ||
|
|
||
| 응답: | ||
| include::{snippets}/member-login/http-response.adoc[] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| == 배송지 주소 (Delivery Address) API | ||
|
|
||
| === 1. 배송지 주소 등록 | ||
| `POST /address` | ||
|
|
||
| 요청 본문: | ||
| include::{snippets}/delivery-address-register/request-fields.adoc[] | ||
|
|
||
| 응답: | ||
| include::{snippets}/delivery-address-register/http-response.adoc[] | ||
|
|
||
| ==== 배송지 주소 등록 실패: 유효성 검사 | ||
| * `우편번호 누락` | ||
| include::{snippets}/delivery-address-register-fail-postal-code-missing/http-response.adoc[] | ||
| include::{snippets}/delivery-address-register-fail-postal-code-missing/response-fields.adoc[] | ||
|
|
||
| --- | ||
|
|
||
| === 2. 배송지 주소 조회 | ||
| `GET /address/{deliveryAddressId}/info` | ||
|
|
||
| 경로 파라미터 (Path Parameters): | ||
| include::{snippets}/delivery-address-info-get/path-parameters.adoc[] | ||
|
|
||
| 응답 본문: | ||
| include::{snippets}/delivery-address-info-get/response-fields.adoc[] | ||
|
|
||
| 응답: | ||
| include::{snippets}/delivery-address-info-get/http-response.adoc[] | ||
|
|
||
| ==== 배송지 주소 조회 실패: 존재하지 않는 주소 ID | ||
| include::{snippets}/delivery-address-info-get-fail-not-found/http-response.adoc[] | ||
| include::{snippets}/delivery-address-info-get-fail-not-found/response-fields.adoc[] | ||
|
|
||
| --- | ||
|
|
||
| === 3. 배송지 주소 목록 조회 | ||
| `GET /address` | ||
|
|
||
| 쿼리 파라미터 (Query Parameters): | ||
| include::{snippets}/delivery-address-info-list-get/query-parameters.adoc[] | ||
|
|
||
| 응답 본문: | ||
| include::{snippets}/delivery-address-info-list-get/response-fields.adoc[] | ||
|
|
||
| 응답: | ||
| include::{snippets}/delivery-address-info-list-get/http-response.adoc[] | ||
|
|
||
| --- | ||
|
|
||
| === 4. 수취인 정보 수정 | ||
| `PATCH /address/{deliveryAddressId}/recipient` | ||
|
|
||
| 경로 파라미터 (Path Parameters): | ||
| include::{snippets}/delivery-address-recipient-update/path-parameters.adoc[] | ||
|
|
||
| 요청 본문: | ||
| include::{snippets}/delivery-address-recipient-update/request-fields.adoc[] | ||
|
|
||
| 응답: | ||
| include::{snippets}/delivery-address-recipient-update/http-response.adoc[] | ||
|
|
||
| ==== 수취인 정보 수정 실패: 존재하지 않는 주소 ID | ||
| include::{snippets}/delivery-address-recipient-update-fail-not-found/http-response.adoc[] | ||
| include::{snippets}/delivery-address-recipient-update-fail-not-found/response-fields.adoc[] | ||
|
|
||
| --- | ||
|
|
||
| === 5. 상세 주소 수정 | ||
| `PATCH /address/{deliveryAddressId}/detail` | ||
|
|
||
| 경로 파라미터 (Path Parameters): | ||
| include::{snippets}/delivery-address-detail-update/path-parameters.adoc[] | ||
|
|
||
| 요청 본문: | ||
| include::{snippets}/delivery-address-detail-update/request-fields.adoc[] | ||
|
|
||
| 응답: | ||
| include::{snippets}/delivery-address-detail-update/http-response.adoc[] | ||
|
|
||
| --- | ||
|
|
||
| === 6. 기본 배송지 설정 | ||
| `PATCH /address/{deliveryAddressId}/default` | ||
|
|
||
| 경로 파라미터 (Path Parameters): | ||
| include::{snippets}/delivery-address-default-set/path-parameters.adoc[] | ||
|
|
||
| 응답: | ||
| include::{snippets}/delivery-address-default-set/http-response.adoc[] | ||
|
|
||
| --- | ||
|
|
||
| === 7. 배송지 주소 삭제 | ||
| `DELETE /address/{deliveryAddressId}` | ||
|
|
||
| 경로 파라미터 (Path Parameters): | ||
| include::{snippets}/delivery-address-delete/path-parameters.adoc[] | ||
|
|
||
| 응답: | ||
| include::{snippets}/delivery-address-delete/http-response.adoc[] | ||
|
|
||
| ==== 배송지 주소 삭제 실패: 권한 없음 (다른 회원의 주소 삭제 시도) | ||
| include::{snippets}/delivery-address-delete-fail-no-permission/http-response.adoc[] | ||
| include::{snippets}/delivery-address-delete-fail-no-permission/response-fields.adoc[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
...m/come2us/domain/deliveryaddress/presentation/dto/request/AddressDetailUpdateRequest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| package com.irum.come2us.domain.deliveryaddress.presentation.dto.request; | ||
|
|
||
| import java.util.UUID; | ||
|
|
||
| public record AddressDetailUpdateRequest(UUID deliveryAddressId, String newAddressDetail) {} | ||
| public record AddressDetailUpdateRequest(String newAddressDetail) {} |
5 changes: 1 addition & 4 deletions
5
.../irum/come2us/domain/deliveryaddress/presentation/dto/request/RecipientUpdateRequest.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,3 @@ | ||
| package com.irum.come2us.domain.deliveryaddress.presentation.dto.request; | ||
|
|
||
| import java.util.UUID; | ||
|
|
||
| public record RecipientUpdateRequest( | ||
| UUID deliveryAddressId, String newRecipientName, String newRecipientContact) {} | ||
| public record RecipientUpdateRequest(String newRecipientName, String newRecipientContact) {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.