마이페이지조회 - NetworkProgramingProject/Server GitHub Wiki
마이페이지 조회
메소드 |
경로 |
설명 |
GET |
/mypage |
마이페이지 조회 |
요청 헤더
Content-Type: application/json
Header: token
응답 바디
SUCCESS : 마이페이지 조회 성공
{
"status": 200,
"success": true,
"message": "회원 조회 성공",
"data": {
"email": "[email protected]",
"nick": "nickname",
"sell": [
{
"id": 3,
"title": "title(goods_name)_new",
"img": "https://yeonghyeon.s3.ap-northeast-2.amazonaws.com/1623434124197.png",
"min_price": 10000,
"deadline": null,
"desc": "description about goods",
"createdAt": "2021-06-11T17:55:24.000Z",
"updatedAt": "2021-06-11T17:55:24.000Z",
"deletedAt": null,
"OwnerId": 2,
"SoldId": null
},
{
"id": 4,
"title": "title(goods_name)_new_scheduler",
"img": "https://yeonghyeon.s3.ap-northeast-2.amazonaws.com/1623438213980.png",
"min_price": 10000,
"deadline": null,
"desc": "description about goods",
"createdAt": "2021-06-11T19:03:34.000Z",
"updatedAt": "2021-06-11T19:03:34.000Z",
"deletedAt": null,
"OwnerId": 2,
"SoldId": null
}
],
"buy": [
{
"id": 3,
"title": "title(goods_name)_new",
"img": "https://yeonghyeon.s3.ap-northeast-2.amazonaws.com/1623434124197.png",
"min_price": 10000,
"deadline": null,
"desc": "description about goods",
"createdAt": "2021-06-11T17:55:24.000Z",
"updatedAt": "2021-06-11T17:55:24.000Z",
"deletedAt": null,
"OwnerId": 2,
"SoldId": null
},
]
}
}
FAIL : 마이페이지 조회 실패
{
"status": 500,
"success": false,
"message": "마이페이지 조회 실패"
}