添加文章接口
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>用户注册接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>api/rest/categories</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> [{_id: "5e0b64a49e9a053748d6f2a4", name: "英雄列表", __v: 0, parent: null, children: [,…]},…]
0: {_id: "5e0b64a49e9a053748d6f2a4", name: "英雄列表", __v: 0, parent: null, children: [,…]}
1: {_id: "5e96abe06ca45218e8000fbb", parent: null, name: "新闻资讯", __v: 0, children: [,…]}
2: {_id: "5e99128019aee51030c8061d", parent: null, name: "攻略中心", __v: 0,…}
3: {_id: "5ea2448d65521e0d101ab84c", parent: null, name: "赛事中心", __v: 0,…}
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">【】</td>
<td style="text-align: left;">int</td>
<td>数据</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>