크Topic Detail

입력한 pk와 일치하는 Topic Object에 대한 정보를 반환합니다.

URL

/topic/<pk>/

Method

GET


Success Response

HTTP Status Code

200

Content

Key Description Type
pk Topic의 pk Int
url Topic Detail 페이지로의 링크 Str
creator Topic을 만든 유저의 Profile Detail 링크 str
name Topic의 이름 Str
description Topic에 대한 설명 Str
image Topic에 대한 썸네일 사진으로의 링크 Str
answer_count Topic과 관련된 답변의 개수 Int
question_count Topic과 관련된 질문의 개수 Int
expert_count Topic과 관련된 전문가 Follower수 Int
interest_count Topic과 관련된 관심 Follower수 Int
created_at 생성된 날짜 Date
modified_at 마지막으로 수정된 날짜 - 처음 생성되었을 때는 created_at과 같음 Date
{
    "pk": 26,
    "url": "http://localhost:8000/topic/26/",
    "creator": "http://localhost:8000/user/5/profile/main-detail/",
    "name": "이이이",
    "description": "",
    "image": null,
    "answer_count": 0,
    "question_count": 0,
    "expert_count": 1,
    "interest_count": 1,
    "created_at": "2017-12-09T01:49:03.222649+09:00",
    "modified_at": "2017-12-12T15:14:10.992580+09:00"
}

Error Response

Page Not Found Error

HTTP Status Code

404

Content

# pk값과 일치하는 Answer가 없을 때
{
    "detail": "찾을 수 없습니다."
}

results matching ""

    No results matching ""