마이페이지
접근 시 유저 토큰 필요
회원탈퇴
탈퇴 / 마지막 접속 시간, 비활성화
DELETE
/api/users/profile
Query Parameters
Name
Type
Description
userId
ObjectId
관리자 권한으로 유저 탈퇴처리 시 탈퇴시킬 유저고유아이
Headers
Name
Type
Description
authorization*
String
Bearer Token
{
"message": "탈퇴가 정상적으로 완료되었습니다"
}
비밀번호 변경
비밀번호 체크
POST
/api/users/profile
Headers
Name
Type
Description
authorization*
String
Bearer Token
Content-type*
String
application/json
Request Body
Name
Type
Description
password*
String
비밀번호 변경
PATCH
/api/users/profile
Headers
Name
Type
Description
authorization*
String
Bearer Token
Content-type*
String
application/json
Request Body
Name
Type
Description
password*
String
{
"message": "비밀번호가 성공적으로 변경되었습니다"
}
주문 내역
유저의 전체 주문 내역
GET
/api/orders/mine
Query Parameters
Name
Type
Description
pageNumber
Number
pageNumber 1 is default
Headers
Name
Type
Description
authorization*
String
Bearer Token
[
{
"result": {
"id": "20211130111111",
"paidAt": "2021-12-01T17:15:53.146Z",
"status": 0,
"updatedAt": "2021-12-01T17:15:53.146Z"
},
"_id": "61a7adc903b7708e5dbba693",
"user": {
"general": {
"email": "a@test.com"
},
"_id": "61a4e52b4f5f6aa036bfec61"
},
"orderItems": [
{
"image": "/images/bye/1.jpg",
"title": "잠식",
"artist": "안영희",
"size": "73x61cm(20호)",
"price": 99000,
"product": "61a4c895f59ea1b7a727a658"
},
{
"image": "/images/owner/1.jpg",
"title": "파멸",
"artist": "로키산맥",
"size": "163x131cm(100호)",
"price": 469000,
"product": "61a4debe4f5f6aa036bfec5f"
}
],
"totalPrice": 578000
},
...
"page": 1,
"pages": 2
]
해당 주문 상세 확인
GET
/api/orders/:id
Path Parameters
Name
Type
Description
id*
ObjectId
Order's
Headers
Name
Type
Description
authorization*
String
Bearer Token
{
"result": {
"id": "20211130111111",
"paidAt": "2021-12-01T17:15:53.146Z",
"status": 0,
"updatedAt": "2021-12-01T17:15:53.146Z"
},
"deliveryInfo": {
"address": "[12990] 경기 하남시 감북로 18 (감일동)",
"detailedAddress": "강남으로 가자 8282",
"receiver": "김로또",
"contactNum": "010-7777-7777"
},
"deliveryDetails": {
"receiveAt": "문 앞",
"requestedTerms": "도착 시 꼭 문자주세요!!"
},
"ordererInfo": {
"name": "남대문",
"phoneNum": "010-4444-4444",
"email": "a@test.com",
"refundTerms": "품절 시 결제수단으로 환불"
},
"_id": "61a7adc903b7708e5dbba693",
"user": "61a4e52b4f5f6aa036bfec61",
"orderItems": [
{
"image": "/images/bye/1.jpg",
"title": "잠식",
"artist": "안영희",
"size": "73x61cm(20호)",
"price": 99000,
"product": "61a4c895f59ea1b7a727a658"
},
{
"image": "/images/owner/1.jpg",
"title": "파멸",
"artist": "로키산맥",
"size": "163x131cm(100호)",
"price": 469000,
"product": "61a4debe4f5f6aa036bfec5f"
}
],
"shippingPrice": 10000,
"totalPrice": 578000
}
해당 주문 취소 (결제 취소) 요청
DELETE
/api/orders/:id
Path Parameters
Name
Type
Description
id*
ObjectId
Order's
Headers
Name
Type
Description
authorization*
String
Bearer Token
{
"message": "해당 주문의 결제 취소가 완료되었습니다"
}
찜
관심 작가 찜 목록
GET
api/artists/zzim
Headers
Name
Type
Description
authorization*
String
Bearer Token
[
{
"_id": "61a4debe4f5f6aa036bfec5d",
"name": "로키산맥",
"aka": "Tesseract Owner",
"thumbnail": "/images/owner/1.jpg",
"countOfWorks": 1
}
...
]
관심 상품 찜 목록
GET
api/products/zzim
Headers
Name
Type
Description
authorization*
String
Bearer Token
[
{
"info": {
"size": "163x131cm",
"canvas": 100
},
"_id": "61a4debe4f5f6aa036bfec5f",
"artist": {
"_id": "61a4debe4f5f6aa036bfec5d",
"name": "로키산맥"
},
"title": "파멸",
"image": "/images/owner/1.jpg",
"price": 469000
}
...
]
Last updated