赵俊杰-接口测试文档
<h5>问答详情</h5>
<p>浏览接口:<a href="http://localhost:9000/wenda/questionsComment/veiwnumIncr">http://localhost:9000/wenda/questionsComment/veiwnumIncr</a></p>
<h5>正常访问</h5>
<pre><code>
{
"msg": "success",
"code": 200,
"data": {
"questionCommentId": 1,
"viewnum": 5,
"replynum": 0,
"favornum": 0,
"thumbsupnum": 0
}
}
</code></pre>
<p>点赞接口:<a href="http://localhost:9000/wenda/questionsComment/thumbnumIncr">http://localhost:9000/wenda/questionsComment/thumbnumIncr</a></p>
<h5>正常访问</h5>
<pre><code>
{
"msg": null,
"result": false,
"code": 200,
"data": {
"viewnum": 9,
"thumbsupnum": 1
}
}</code></pre>
<p>关注接口:<a href="http://localhost:9000/wenda/questionsComment/favornumIncr">http://localhost:9000/wenda/questionsComment/favornumIncr</a></p>
<h5>正常访问</h5>
<pre><code>
{
"msg": null,
"result": true,
"code": 200,
"data": {
"favornum": 1
}
}</code></pre>
<p>回答接口:<a href="http://localhost:9000/wenda/questionsComment/answer?qid=1&content=eqwe">http://localhost:9000/wenda/questionsComment/answer?qid=1&content=eqwe</a></p>
<h5>正常访问</h5>
<pre><code>
{
"msg": null,
"code": 200
}</code></pre>
<h5>异常请求</h5>
<h5>未登录</h5>
<pre><code>
{
"msg": "用户未登录",
"code": 401
}</code></pre>
<h5>未填写参数</h5>
<pre><code>
{
"msg": null,
"code": 500
}</code></pre>