Search Topic

Query Parameter에 주어진 이름과 일치하는 Topic을 반환합니다.

URL

/search/topic/?<paramter>=<value>

Method

GET

Query Params

Parameter Description Type uri
name Topic의 이름 Str /search/topic/?name=음악

Success Response

HTTP Status Code

200

Content

{
    "result": {
        "pk": 26,
        "creator": 5,
        "name": "수학",
        "description": "",
        "image": null,
        "answer_count": 0,
        "question_count": 0,
        "expert_count": 0,
        "interest_count": 0,
        "created_at": "2017-12-09T01:49:03.222649+09:00",
        "modified_at": "2017-12-09T01:49:03.222680+09:00"
    }
}

결과값이 없을 경우 -

HTTP Status Code

200

Content

{
    "result": "결과가 없습니다."
}

Error Response

HTTP Status code

400

Content

# name query parameter가 비어있을 경우
{
    "error": "name 필드가 비어있습니다."
}

results matching ""

    No results matching ""