Question Detail
입력한 primary key에 해당하는 Question object의 정보를 돌려줍니다.
URL
/post/question/<pk>/
Method
GET
Seccess Response
HTTP Status Code
200
Key | Description | Type |
---|---|---|
pk | Question pk | Integer |
user | User pk | Integer |
content | 질문 내용 | String |
bookmark_count | 해당 질문을 북마크 한 수 | Integer |
follow_count | 해당 질문을 팔로우 한 수 | Integer |
comment_count | 해당 질문에 달린 댓글 수 | Integer |
created_at | 질문 생성 날짜 | Date |
modified_at | 질문 수정 날짜 | Date |
content
{
"question": {
"pk": 2,
"user": 1,
"content": "오늘 날씨는 어떤가요?",
"bookmark_count": 1,
"follow_count": 2,
"comment_count": 0,
"created_at": "2017-12-06",
"modified_at": "2017-12-08T03:58:41.269703+09:00"
},
"topics": [
1,
3,
6,
7
]
}
Error Response
HTTP Status code
404
Content
pk값을 찾을 수 없을 때
{
"detail": "찾을 수 없습니다."
}