-
Notifications
You must be signed in to change notification settings - Fork 1
모든 나눔 완료 게시물 조회
HwangJaeSuk edited this page Sep 23, 2019
·
5 revisions
![](https://github.com/BabyClosetGroup/BabyClosetServer/raw/master/babyCloset/public/images/sharedpostall.png)
[GET] ~/share/completed
메소드 | 파라미터 | 설명 |
---|---|---|
Content-Type | application/json | |
token | {user token} | 토큰값 |
변수 | 타입 | 설명 |
---|---|---|
isRated | Int | 별점이 부여되었을 때 1, 별점이 부여되지 않았을 때 0의 값을 가짐 |
{
"status": 200,
"success": true,
"message": "게시물 조회 성공",
"data": {
"allPost": [
{
"postIdx": 27,
"postName": "3개월 아기바지",
"mainImage": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/1567341981635.jpeg",
"receiverIdx": 3,
"receiverNickname": "바나나킥",
"sharedDate": "2019. 08. 31",
"receiverIsRated": 0,
"rating": 4,
"areaName": [
"서초구"
]
},
{
"postIdx": 26,
"postName" : "귀여운 하얀색 상의 옷",
"mainImage": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/1567341869543.jpeg",
"areaName": "송파구",
"receiverIdx": 5,
"receiverNickname": "봉구",
"sharedDate": "2019. 08. 31",
"receiverIsRated": 0,
"rating": 2,
"areaName": [
"송파구"
]
}
]
}
}
{
"status": 400,
"success": false,
"message": "토큰값이 존재하지 않습니다."
}
{
"status": 401,
"success": false,
"message": "잘못된 형식의 토큰입니다."
}
{
"status": 401,
"success": false,
"message": "만료된 토큰입니다."
}
{
"status": 600,
"success": false,
"message": "게시물 조회 실패"
}
-
유저(User)
-
게시물(Post)
-
쪽지(Note)
-
나눔(Share)
-
QR인증(QRCode)
-
별점(Rating)
-
신고(Complain)