商品规格


详情

<h5>简要描述</h5> <ul> <li>商品属性详情接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>/api/admin/attributes/{attribute}</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET</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> <tr> <td style="text-align: left;">Authorization  </td> <td style="text-align: left;"> 是  </td> <td style="text-align: left;">string</td> <td>JWT token      </td> </tr> </tbody> </table> <h5>Query 请求参数</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> <tr> <td style="text-align: left;">include</td> <td style="text-align: left;"> 否  </td> <td style="text-align: left;">string</td> <td>额外数据:goodsType</td> </tr> </tbody> </table> <h5>返回示例</h5> <ul> <li>状态码 200 请求成功</li> </ul> <pre><code>{ &amp;quot;id&amp;quot;: 2, &amp;quot;goods_type_id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;存储容量&amp;quot;, &amp;quot;is_index&amp;quot;: 1, &amp;quot;input_type&amp;quot;: 1, &amp;quot;input_type_name&amp;quot;: &amp;quot;从下面的列表中选择&amp;quot;, &amp;quot;values&amp;quot;: [ &amp;quot;高价机&amp;quot;, &amp;quot;中价机&amp;quot;, &amp;quot;低价机&amp;quot; ], &amp;quot;sort&amp;quot;: 0, &amp;quot;created_at&amp;quot;: &amp;quot;2023-06-03T08:08:47.000000Z&amp;quot;, &amp;quot;updated_at&amp;quot;: &amp;quot;2023-06-03T14:36:51.000000Z&amp;quot;, &amp;quot;goodsType&amp;quot;: { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;手机&amp;quot;, &amp;quot;created_at&amp;quot;: &amp;quot;2023-06-03T03:42:51.000000Z&amp;quot;, &amp;quot;updated_at&amp;quot;: &amp;quot;2023-06-03T05:25:48.000000Z&amp;quot; } }</code></pre>

页面列表

ITEM_HTML