-
Notifications
You must be signed in to change notification settings - Fork 1
게시물 상세 조회
HwangJaeSuk edited this page Sep 24, 2019
·
9 revisions
postIdx는 각 게시물마다 부여된 인덱스 값입니다.
![](https://github.com/BabyClosetGroup/BabyClosetServer/raw/master/babyCloset/public/images/postdetail.png)
[GET] ~/post/{postIdx}
메소드 | 파라미터 | 설명 |
---|---|---|
Content-Type | application/json | |
token | {user token} | 토큰값 |
변수 | 타입 | 설명 |
---|---|---|
userIdx | Int | 게시물을 올린 사람의 유저 id값 |
isSender | Int | 나눔자일 경우 1, 받을 사람인 경우 0의 값을 가짐 |
{
"status": 200,
"success": true,
"message": "게시물 상세 조회 성공",
"data": {
"isNewMessage": 1,
"detailPost": {
"postIdx": 11,
"postTitle": "상큼한 주황색 상의 옷입니다",
"postContent": "내용3",
"deadline": "D-2",
"areaName": [
"송파구",
"동작구"
],
"ageName": [
"12개월"
],
"clothName": [
"상의"
],
"nickname": "바나나킥",
"userIdx": 4,
"profileImage": null,
"rating" : 4,
"isSender": 1,
"postImages": [
"https://sopt24server.s3.ap-northeast-2.amazonaws.com/1567081401434.jpeg",
"https://sopt24server.s3.ap-northeast-2.amazonaws.com/1567081401435.jpeg"
]
}
}
}
{
"status": 400,
"success": false,
"message": "존재하지 않는 게시물 입니다."
}
{
"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)