获取栏目值

获取栏目值,系统将根据参数计算出对应的栏目值

使用GET发起请求,请求地址为/api/v1/stl/channel

  1. GET /api/v1/stl/channel HTTP/1.1

请求 URI

参数名 类型 必填 说明
siteId 字符串 站点Id
siteDir 字符串 站点文件夹
channelId 字符串 栏目Id
channelIndex 字符串 栏目索引
channelName 字符串 栏目名称
apiKey 字符串 API 密钥,请参考身份认证

/api/v1/stl/channel的其他参数与<stl:channel>标签一致。

返回

名称 类型 说明
200 OK Channel 栏目
401 Unauthorized Error 认证错误
400 BadRequest Error 参数错误

示例

请求示例

  1. GET /api/v1/stl/channel?siteId=1
  2. X-SS-API-KEY: 7cd22002-27a7-4c5d-ba4d-a1c108a20eaf

返回示例

  1. {
  2. "value": {
  3. "id": 1,
  4. "channelName": "首页",
  5. "siteId": 1,
  6. "contentModelPluginId": "",
  7. "contentRelatedPluginIds": "",
  8. "parentId": 0,
  9. "parentsPath": "",
  10. "parentsCount": 0,
  11. "childrenCount": 66,
  12. "isLastNode": false,
  13. "indexName": "首页",
  14. "groupNameCollection": "",
  15. "taxis": 1,
  16. "addDate": "2018-02-27 14:48:50",
  17. "imageUrl": "",
  18. "content": "",
  19. "contentNum": 0,
  20. "filePath": "",
  21. "channelFilePathRule": "",
  22. "contentFilePathRule": "",
  23. "linkUrl": "",
  24. "linkType": "None",
  25. "channelTemplateId": 0,
  26. "contentTemplateId": 0,
  27. "keywords": "",
  28. "description": "",
  29. "additional": {
  30. "isChannelAddable": true,
  31. "isContentAddable": true,
  32. "isChannelCreatable": true,
  33. "isContentCreatable": true,
  34. "isCreateChannelIfContentChanged": true,
  35. "createChannelIDsIfContentChanged": "",
  36. "contentAttributesOfDisplay": "",
  37. "transType": 5,
  38. "transSiteId": 0,
  39. "transChannelIds": "",
  40. "transChannelNames": "",
  41. "transIsAutomatic": false,
  42. "transDoneType": 0,
  43. "isPreviewContents": false,
  44. "defaultTaxisType": "OrderByTaxisDesc"
  45. },
  46. "attributes": {
  47. "isChannelAddable": true,
  48. "isContentAddable": true,
  49. "isChannelCreatable": true,
  50. "isContentCreatable": true,
  51. "isCreateChannelIfContentChanged": true,
  52. "createChannelIDsIfContentChanged": "",
  53. "contentAttributesOfDisplay": "",
  54. "transType": 5,
  55. "transSiteId": 0,
  56. "transChannelIds": "",
  57. "transChannelNames": "",
  58. "transIsAutomatic": false,
  59. "transDoneType": 0,
  60. "isPreviewContents": false,
  61. "defaultTaxisType": "OrderByTaxisDesc"
  62. }
  63. }
  64. }