-
Notifications
You must be signed in to change notification settings - Fork 1
모든 게시물 조회
HwangJaeSuk edited this page Sep 16, 2019
·
13 revisions
pagination은 상품 더보기 클릭 시 바뀌어야 되는 page index값이고 1부터 시작합니다.
![](https://github.com/BabyClosetGroup/BabyClosetServer/raw/master/babyCloset/public/images/postall.png)
[GET] ~/post/all/{pagination}
메소드 | 파라미터 | 설명 |
---|---|---|
Content-Type | application/json | |
token | {user token} | 토큰값 |
변수 | 타입 | 설명 |
---|---|---|
isNewMessage | Int | 새 메시지 왔을 때 1, 새 메시지 안 왔을 때 0의 값을 가짐 |
postTitle | String | 12글자 넘어갈 때 12글자까지만 표시되고 뒤에 ..로 표시됨 |
{
"status": 200,
"success": true,
"message": "게시물 조회 성공",
"data": {
"isNewMessage" : 1,
"allPost": [
{
"postIdx": 27,
"postTitle": "귀여운 하얀색 상의 옷..",
"mainImage": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/1567341981635.jpeg",
"areaName": [
"송파구",
"동작구"
]
},
{
"postIdx": 26,
"postTitle": "귀여운 초록색 상의 옷..",
"mainImage": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/1567341869543.jpeg",
"areaName": [
"송파구"
]
},
{
"postIdx": 25,
"postTitle": "귀여운 파란색 상의 옷..",
"mainImage": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/1567341854422.jpeg",
"areaName": [
"송파구"
]
},
{
"postIdx": 24,
"postTitle": "귀여운 주황색 상의 옷..",
"mainImage": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/1567341765984.jpeg",
"areaName": [
"송파구"
]
},
{
"postIdx": 23,
"postTitle": "상큼한 초록색 상의 옷..",
"mainImage": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/1567255151131.jpeg",
"areaName": [
"송파구"
]
},
{
"postIdx": 21,
"postTitle": "상큼한 하얀색 상의 옷..",
"mainImage": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/1567255151131.jpeg",
"areaName": [
"송파구"
]
},
{
"postIdx": 20,
"postTitle": "상큼한 노란색 상의 옷..",
"mainImage": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/1567255151131.jpeg",
"areaName": [
"동작구"
]
},
{
"postIdx": 19,
"postTitle": "상큼한 주황색 상의 옷..",
"mainImage": "https://sopt24server.s3.ap-northeast-2.amazonaws.com/1567255151131.jpeg",
"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)