关联资源推荐
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!欢迎使用ShowDoc!</p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>关联资源推荐</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>192.168.0.226:8093/api/resources/{id}/relations</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET </li>
</ul>
<p><strong>资源类型:</strong>
QueryString</p>
<p><strong>参数:</strong> </p>
<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>
<tr>
<td style="text-align: left;">per_page</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>分页数量</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"resCode": 0,
"resMsg": "ok",
"data": {
"current_page": 1,
"data": [
{
"id": 11,
"name": "测试资源3",
"ext": "zip"
},
{
"id": 12,
"name": "测试资源4",
"ext": "zip"
}
],
"first_page_url": "http://localhost:8093/api/resources/12/relations?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:8093/api/resources/12/relations?page=1",
"next_page_url": null,
"path": "http://localhost:8093/api/resources/12/relations",
"per_page": "15",
"prev_page_url": null,
"to": 2,
"total": 2
}
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!欢迎使用ShowDoc!</p>