# 獲取欄目列表
### 簡要描述
獲取欄目列表接口
### 請求URL
/api/v1/stl/channels
### 請求方式
GET
### 請求參數說明

/api/v1/stl/channels的其他參數與<stl:channels>標簽一致。
### 請求示例
GET /api/v1/stl/channels?siteId=1
### 返回示例
{
"value": [
{
"id": 33,
"channelName": "通知公告",
"siteId": 32,
"contentModelPluginId": "",
"contentRelatedPluginIds": "",
"parentId": 32,
"parentsPath": "32",
"parentsCount": 1,
"childrenCount": 0,
"isLastNode": false,
"indexName": "通知公告",
"groupNameCollection": "",
"taxis": 2,
"addDate": "2017-09-13 10:50:23",
"imageUrl": "@/images/link_bn.jpg",
"content": "",
"contentNum": 5,
"filePath": "",
"channelFilePathRule": "",
"contentFilePathRule": "",
"linkUrl": "",
"linkType": "None",
"channelTemplateId": 21,
"contentTemplateId": 34,
"keywords": "",
"description": "",
"attributes": {
"isChannelAddable": true,
"isContentAddable": true,
"isChannelCreatable": true,
"isContentCreatable": true,
"isCreateChannelIfContentChanged": true,
"createChannelIDsIfContentChanged": "",
"contentAttributesOfDisplay": "SubTitle",
"transType": 5,
"transSiteId": 0,
"transChannelIds": "",
"transChannelNames": "",
"transIsAutomatic": false,
"transDoneType": 0,
"isPreviewContents": false,
"defaultTaxisType": "OrderByTaxisDesc"
}
},
{
"id": 34,
"channelName": "特別報道",
"siteId": 32,
"contentModelPluginId": "",
"contentRelatedPluginIds": "",
"parentId": 32,
"parentsPath": "32",
"parentsCount": 1,
"childrenCount": 0,
"isLastNode": false,
"indexName": "特別報道",
"groupNameCollection": "m_sitemap",
"taxis": 3,
"addDate": "2017-09-13 10:50:24",
"imageUrl": "@/images/link_bn.jpg",
"content": "",
"contentNum": 38,
"filePath": "",
"channelFilePathRule": "",
"contentFilePathRule": "",
"linkUrl": "",
"linkType": "None",
"channelTemplateId": 21,
"contentTemplateId": 22,
"keywords": "",
"description": "",
"attributes": {
"isChannelAddable": true,
"isContentAddable": true,
"isChannelCreatable": true,
"isContentCreatable": true,
"isCreateChannelIfContentChanged": true,
"createChannelIDsIfContentChanged": "",
"contentAttributesOfDisplay": "LastEditDate",
"transType": 5,
"transSiteId": 0,
"transChannelIds": "",
"transChannelNames": "",
"transIsAutomatic": false,
"transDoneType": 0,
"isPreviewContents": false,
"defaultTaxisType": "OrderByTaxisDesc"
}
}
]
}
### 返回參數說明

詳細字段請參考[欄目表](https://docs.siteserver.cn/model#/siteserver_Channel)
### 備注
更多返回錯誤代碼請看首頁的錯誤代碼描述