User
기능 |
Method |
End Point |
Request Body |
Response Body |
status |
회원 가입 |
POST |
/usr/register |
{ |
|
|
“name”: String, |
|
|
|
|
|
“username”: String, |
|
|
|
|
|
“password”: String, |
|
|
|
|
|
“tag”: List<Tag> |
|
|
|
|
|
} |
GET |
|
|
|
|
redirect:/main |
200 |
|
|
|
|
로그인 |
POST |
/usr/login |
{ |
|
|
“username”: String, |
|
|
|
|
|
“password”: String |
|
|
|
|
|
} |
GET |
|
|
|
|
redirect:/main |
200 |
|
|
|
|
개인 정보 변경 |
PATCH |
/usr/info/edit |
{ |
|
|
“password”: String, |
|
|
|
|
|
“tag”: List<Tag>, |
|
|
|
|
|
“phoneNumber”: String |
|
|
|
|
|
} |
GET |
|
|
|
|
redirect:/usr/info |
200 |
|
|
|
|
배송지 등록 |
POST |
/usr/info/address-edit |
{ |
|
|
“user_id”: Long |
|
|
|
|
|
“address”: String |
|
|
|
|
|
} |
GET |
|
|
|
|
redirect:/usr/info |
200 |
|
|
|
|
내 문의 목록 |
GET |
/usr/info/ask |
{ |
|
|
“user_id”: Long |
|
|
|
|
|
} |
|
200 |
|
|
|
환불 계좌 설정 |
POST |
/usr/info/account |
{ |
|
|
“bank_name”: String, |
|
|
|
|
|
“account”: Long |
|
|
|
|
|
} |
|
300 |
|
|
|
Cart
기능 |
Method |
End Point |
Request Body |
Response Body |
status |
장바구니조회 |
GET |
/cart/list |
|
{ |
|
“productList”: [ |
|
|
|
|
|
“product_option” : {
"name" : string,
"color" : string,
"size" : char,
"quantity" : int
“price” : int
},
……..
]
“total_price” : int
} | 200 |
| 상품 추가 | POST | /usr/cart/put | {
“product_id” : int
“color” : string
“size” : char
“quantity” : int
} | GET
redirect:/usr/cart/list | 300 |
| 상품 개별 삭제 | DELETE | /cart/product_option | {
“option_id” : Long
} | GET
redirect:/usr/cart/list | 300 |
| 장바구니
비우기 | POST | /cart/deleteAll | | GET
redirect:/usr/cart/list | 300 |
| 수량변경 | PATCH | /cart/product-option | {
“option_id” : Long
“quantity” : int
} | GET
redirect:/usr/cart/list | |
orders
기능 |
Method |
End Point |
query string |
Request Body |
Response Body |
status |
주문취소 |
POST |
/orders/cancel |
|
{ |
|
|
“order_id” : Long |
|
|
|
|
|
|
“취소사유” : string |
|
|
|
|
|
|
“password” : string |
|
|
|
|
|
|
} |
GET |
|
|
|
|
|
redirect:/usr/orderList |
200 |
|
|
|
|
|
주문 |
POST |
/orders/order |
|
{ |
|
|
“user_id” : Long |
|
|
|
|
|
|
"total_price" int |
|
|
|
|
|
|
} |
GET |
|
|
|
|
|
redirect:/usr/orderList |
|
|
|
|
|
|
주문조회 |
GET |
/orders/oderList |
|
{ |
|
|
“user_id” : Long |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
product
기능 |
Method |
End Point |
Request Body |
Response Body |
status |
상품 리스트 |
GET |
/products/list?main-category={main-category_id}&sub-category={sub-category_id}&page=int |
{ |
|
|
“main-category_id”: Long, |
|
|
|
|
|
“sub-category_id”: Long, |
|
|
|
|
|
“offset”: int |
|
|
|
|
|
} |
{ |
|
|
|
|
"content": [ |
|
|
|
|
|
{
“id”: Long,
“brand”: String,
“title”: String,
“mainPhoto”: MultipartFile
“price”: Integer
}, …
],
“pageable” : {
}
} | 200 |
| 상품 상세 페이지 | GET | /products/{product_id} | {
“id” : Long
} | {
“title”: String,
“content”: String,
“mainPhoto”: MultipartFile,
“subPhoto”: List<MultipartFile>
“price”: int,
“tag”: List<Tag>
} | 200 |
| 상품 등록 | POST | /products/register | {
“title”: String,
“content”: String,
“mainPhoto”: MultipartFile,
“subPhoto”: List<MultipartFile>
“price”: int,
“tag”: List<Tag>
} | GET
redirect:/products?id={product_id} | 200 |
| 상품 변경 | PUT | /products/edit/{product_id} | {
“id” : Long,
“title”: String,
“content”: String,
“mainPhoto”: MultipartFile,
“subPhoto”: List<MultipartFile>
“price”: int,
“tag”: List<Tag>
} | GET
redirect:/products?id={product_id} | 200 |
| 상품 삭제 | DELETE | /products/{product_id} | {
“id” : Long
} | GET
redirect:/products | 200 |
Notification
기능 |
Method |
End Point |
Request Body |
Response Body |
status |
알람조회 |
GET |
/notification/list |
{ |
|
|
“user_id” : Long |
|
|
|
|
|
} |
|
|
|
|
|
Review
기능 |
Method |
End Point |
Request Body |
Response Body |
status |
리뷰조회 |
GET |
/review/list/{productId} |
{ |
|
|
“product_id”: Long |
|
|
|
|
|
} |
|
|
|
|
|
리뷰작성 |
POST |
/review/write |
{ |
|
|
“product_id” : Long |
|
|
|
|
|
“user_id” : Long |
|
|
|
|
|
“content” : string |
|
|
|
|
|
“rating” : int |
|
|
|
|
|
“photo” : List<MultipartFile> |
|
|
|
|
|
“createDate” : LocatDateTime |
|
|
|
|
|
} |
|
|
|
|
|
리뷰삭제 |
DELETE |
/review/delete/{id} |
{ |
|
|
“review_id” : Long |
|
|
|
|
|
} |
|
|
|
|
|
리뷰수정 |
PATCH |
/review/edit/{id} |
{ |
|
|
“user_id” : Long |
|
|
|
|
|
} |
|
|
|
|
|
Ask
기능 |
Method |
End Point |
Request Body |
Response Body |
status |
문의내역 |
GET |
/trendpick/customerservice/asks/list |
|
/trendpick/customerservice/asks/list |
200 |
문의상세 |
GET |
/trendpick/customerservice/asks/{askId} |
|
|
|
/trendpick/customerservice/asks/detail |
300 |
|
|
|
|
문의추가 |
POST |
/trendpick/customerservice/asks |
{ |
|
|
“brandId” : Long |
|
|
|
|
|
} |
redirect://trendpick/customerservice/asks/{askId} |
300 |
|
|
|
문의수정 |
POST |
/trendpick/customerserivce/asks/edit/{askId} |
|
redirect:/trendpick/customerservice/asks/{askId} |
300 |
문의삭제 |
POST |
/trendpick/customerserivce/asks/delete/{askId} |
|
redirect:/trendpick/customerservice/asks/list |
300 |
|
|
|
|
|
|
Answer