Skip to content
On this page

4.1.1获取商品末级分类

接口说明:

MethodURLContentType
GET/api/restful/categoriesapplication/json

返回结果说明:

参数类型说明描述
successbool成功:true 失败:false
errorcodeint错误码
errormsgstring错误消息
resultJson 数组{"name":"工程设备及用品","id":"0028-0003" }

请求参数示例:

/api/restful/categories

返回数据示例:

json
{
    "result": [{
        "name": "笔类",
        "id": "010101"
    }, {
        "name": "显卡",
        "id": "020204"
    }, {
        "name": "手写板",
        "id": "020212"
    }, {
        "name": "充电宝",
        "id": "020503"
    }, {
        "name": "电视",
        "id": "030202"
    }],
    "success": true,
    "errormsg": "",
    "errorcode": "0",
    "requestId": "f2d0dcad158849e5a82081e4e9241f62"
}