-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature_add_withdraw_member_history
- Loading branch information
Showing
24 changed files
with
581 additions
and
344 deletions.
There are no files selected for viewing
This file contains 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,152 @@ | ||
|
||
|
||
# Main-Controller API | ||
|
||
### 배너정보조회 | ||
GET http://localhost:8080/banner | ||
|
||
|
||
### 추천제품조회 | ||
GET http://localhost:8080/recommend-products | ||
|
||
|
||
### 조회순 | ||
GET http://localhost:8080/products/rank?sortType=viewCnt-order | ||
|
||
|
||
|
||
### 위반제품목록 | ||
GET http://localhost:8080/products/rank?sortType=violation-products | ||
|
||
<> 2024-02-23T161552-3.200.json | ||
|
||
|
||
### 추천순 | ||
GET http://localhost:8080/products/rank?sortType=recommend-order | ||
|
||
<> 2024-02-23T161552-4.200.json | ||
|
||
|
||
### 최신순 | ||
GET http://localhost:8080/products/rank?sortType=recent-order | ||
|
||
<> 2024-02-23T161552-5.200.json | ||
|
||
|
||
## Product API Test | ||
|
||
### 제품리스트 조회 | ||
GET http://localhost:8080/products | ||
|
||
<> 2024-02-23T161552-6.200.json | ||
|
||
|
||
### 제품아이디로 제품조회 | ||
GET http://localhost:8080/product/5 | ||
|
||
<> 2024-02-23T161552-7.200.json | ||
|
||
### 키워드로 제품 조회 | ||
GET http://localhost:8080/products/search?keyword=더클래스 | ||
|
||
<> 2024-02-23T161553.200.json | ||
<> 2024-02-23T164752.201.json | ||
<> 2024-02-23T163943.201.json | ||
|
||
|
||
### 마이페이지 회원비밀번호 검증요청 | ||
GET http://localhost:8080/mypage/member/validate | ||
Content-Type: application/json | ||
Authorization: {{ authorization }} | ||
|
||
{ | ||
"password": "zxcv1234" | ||
} | ||
|
||
<> 2024-02-23T164933.200.json | ||
|
||
|
||
### 마이페이지 회원정보 수정요청 | ||
PUT http://localhost:8080/mypage/member | ||
Authorization: {{ authorization }} | ||
Content-Type: application/json | ||
|
||
{ | ||
"gender": 2, | ||
"age": 30 | ||
} | ||
|
||
### 회원 세차정보(부가정보) 입력 | ||
POST http://localhost:8080/member/wash | ||
Authorization: {{ authorization}} | ||
Content-Type: application/json | ||
|
||
{ | ||
"washCount": 59, | ||
"monthlyExpense": 63, | ||
"interest": 44 | ||
} | ||
|
||
### 회원 차량정보(부가정보) 입력 | ||
POST http://localhost:8080/member/car | ||
Content-Type: application/json | ||
Authorization: {{ authorization }} | ||
|
||
{ | ||
"carType": 11, | ||
"carSize": 16, | ||
"carColor": 21, | ||
"drivingEnv": 36, | ||
"parkingEnv": 40 | ||
} | ||
|
||
### 마이페이지 차량정보 요청 | ||
GET http://localhost:8080/mypage/car | ||
Authorization: {{ authorization }} | ||
|
||
|
||
### 마이페이지 세차정보 요청 | ||
GET http://localhost:8080/mypage/wash | ||
Authorization: {{authorization}} | ||
|
||
|
||
### 세차장 정보조회 | ||
|
||
GET http://localhost:8080/washzones?minX=36.12&maxX= 36.88&minY=127.1&maxY=127.8&level=2 | ||
|
||
<> 2024-02-23T161554.201.json | ||
|
||
|
||
### 세차장 키워드 검색 | ||
GET http://localhost:8080/washzones/search?keyword=워시존 | ||
|
||
<> 2024-02-23T161554-1.201.json | ||
|
||
|
||
### 세차장 정보 등록 | ||
|
||
POST http://127.0.0.1:8080/washzones | ||
Content-Type: application/json | ||
|
||
{ | ||
"name" : "샘플 세차장", | ||
"address": "서울특별시 봉은사역", | ||
"latitude": 37.777, | ||
"longitude": 127.0808 | ||
} | ||
|
||
|
||
<> 2024-02-23T161554-2.201.json | ||
|
||
|
||
### OCR 검색 기능 | ||
|
||
GET http://127.0.0.1:8080/products/CB19-12-1034 | ||
|
||
<> 2024-02-23T161554.200.json | ||
|
||
|
||
#### 마이페이지 회원탈퇴 요청 | ||
|
||
DELETE http://localhost:8080/mypage/member | ||
Authorization: {{authorization}} |
This file contains 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,5 @@ | ||
{ | ||
"dev": { | ||
"authorization": "eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJ3YXNocGVkaWEiLCJqdGkiOiJ0ZXN0MSIsImlhdCI6MTcwODkzNzM5NSwiZXhwIjoxNzA4OTk3Mzk1fQ.9wE0gyuTUxFdPYigLWprEiI35P0BbCvI49irZ3Gfp3E" | ||
}} | ||
|
This file contains 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,34 @@ | ||
## MyPage API | ||
|
||
### 마이페이지 테스트를 위한 회원가입# | ||
POST http://localhost:8080/member/join | ||
Content-Type: application/json | ||
|
||
{ | ||
"id": "test1", | ||
"password": "zxcv1234", | ||
"email": "[email protected]", | ||
"gender": "MALE", | ||
"age": "AGE_20" | ||
} | ||
|
||
### 마이페이지 검증을 위한 로그인 #1 | ||
POST http://localhost:8080/member/login | ||
Content-Type: application/json | ||
|
||
{ | ||
"id": "test1", | ||
"password": "zxcv1234" | ||
} | ||
|
||
<> 2024-02-23T164810.200.json | ||
<> 2024-02-23T163953.200.json | ||
<> 2024-02-23T161553-1.200.json | ||
|
||
|
||
### 마이페이지 회원(내)정보 | ||
GET http://localhost:8080/mypage/member | ||
Authorization: {{ authorization }} | ||
|
||
<> 2024-02-23T164831.200.json | ||
<> 2024-02-23T164011.200.json |
This file contains 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 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 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 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 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 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 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
24 changes: 3 additions & 21 deletions
24
module-api/src/main/java/com/kernel360/member/dto/MemberInfo.java
This file contains 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,28 +1,10 @@ | ||
package com.kernel360.member.dto; | ||
|
||
import com.kernel360.member.entity.Member; | ||
|
||
public record MemberInfo(String id, | ||
String email, | ||
|
||
|
||
public record MemberInfo( | ||
int gender, | ||
int age | ||
) { | ||
static MemberInfo of( | ||
String id, | ||
String email, | ||
int gender, | ||
int age | ||
) { | ||
return new MemberInfo(id, email, gender, age); | ||
} | ||
|
||
public Member toEntity() { | ||
return Member.of( | ||
this.id, | ||
this.email, | ||
this.gender, | ||
this.age | ||
|
||
); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
module-api/src/main/java/com/kernel360/member/dto/PasswordDto.java
This file contains 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,6 @@ | ||
package com.kernel360.member.dto; | ||
|
||
public record PasswordDto( | ||
String password | ||
) { | ||
} |
This file contains 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.