-
Notifications
You must be signed in to change notification settings - Fork 2
post_detail
이동훈 edited this page Dec 30, 2019
·
5 revisions
Context-type : application/json
GET /post/detail/:idx
header
Authorization : eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImVoZGduczE3NjZAZ21haWwuY29tIiwibmFtZSI6IuydtOuPme2biCIsImlhdCI6MTU3NzQwNzg1NiwiZXhwIjoxNTc5OTk5ODU2LCJpc3MiOiJGbG9vZFNlcnZlciJ9.Zf_LNfQIEdFl84r-tPQpT1nLaxdotkFutOxwNQy-w58
params
idx : "5e009585beecc40d80a4c835"
Sucess
{
"message": "해당 포스트 조회 성공",
"data": {
"pidArr": {
"postImages": [
"https://flood-master.s3.ap-northeast-2.amazonaws.com/1577096580808.jpg"
],
"see": 13,
"bookmark": 1,
"score": 4,
"comments_count": 2,
"postDate": "2019-12-23T10:22:52.915Z",
"comments": [
{
"subComment": [
{
"subComment": [],
"comment_date": "2019-12-26T10:58:09.086Z",
"_id": "5e0492ca9777af39230d08f7",
"content": "나는 나는 이동훈",
"writer": "이동훈",
"profileImage": "https://flood-master.s3.ap-northeast-2.amazonaws.com/1577162793500.jpg"
},
{
"subComment": [],
"comment_date": "2019-12-26T17:25:47.123Z",
"_id": "5e04efc2fa069c00129ddfe1",
"content": "나는 나는 이동훈",
"writer": "이동훈",
"profileImage": "https://flood-master.s3.ap-northeast-2.amazonaws.com/1577162793500.jpg"
},
{
"subComment": [],
"comment_date": "2019-12-26T17:35:42.798Z",
"_id": "5e04efc814841a0012c697e4",
"content": "나는 나는 이동훈",
"writer": "이동훈",
"profileImage": "https://flood-master.s3.ap-northeast-2.amazonaws.com/1577162793500.jpg"
}
],
"comment_date": "2019-12-26T10:07:44.612Z",
"_id": "5e04867432c9dc382f481536",
"content": "나는 나는 이동훈",
"writer": "이동훈",
"profileImage": "https://flood-master.s3.ap-northeast-2.amazonaws.com/1577162793500.jpg"
"__v": 7
}
],
"_id": "5e009585beecc40d80a4c835",
"category": "it",
"image": "https://imgnews.pstatic.net/image/079/2019/12/23/0003304759_001_20191223163702507.jpg",
"title": "\"국과수 감정 조작\" 檢, 이춘재 8차 재심 개시 의견 제출",
"description": "[CBS노컷뉴스 고무성 기자] 검찰이 이춘재 연쇄살인 8차 사건에 대해 재심을 개시함이 상당하다는 의견서를 법원에 제출했다. 수원지검 이 사건 전담조사팀은 23일 오후 브리핑을 통해 \"재심청구인 윤모(52) 씨에 대",
"writer": "ehdgns1766",
"comments_count": 3,
"profileImage": "https://flood-master.s3.ap-northeast-2.amazonaws.com/1577162793500.jpg",
"postContent": "요",
"url": "https://news.naver.com/main/read.nhn?mode=LSD&mid=shm&sid1=102&oid=079&aid=0003304759",
"groupCode": "suk5b5e047712",
"bookmarked": true,
"_somethingElse": 13
}
}
}
Fail : 409
{
"message": "invaild data",
"data": {
}
}
Fail: 500
{
"message": "server error",
"data": {
}
}