获取站点值

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

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

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

请求 URI

参数名 类型 必填 说明
siteId 字符串 站点Id
siteDir 字符串 站点文件夹
apiKey 字符串 API 密钥,请参考身份认证

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

返回

名称 类型 说明
200 OK Site 站点
401 Unauthorized Error 认证错误
400 BadRequest Error 参数错误

示例

请求示例

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

返回示例

  1. {
  2. "value": {
  3. "id": 1,
  4. "siteDir": "test2",
  5. "siteName": "我的站点",
  6. "tableName": "model_Content",
  7. "isRoot": false,
  8. "parentId": 0,
  9. "taxis": 7,
  10. "attributes": {
  11. "charset": "utf-8",
  12. "pageSize": 3,
  13. "isCheckContentLevel": false,
  14. "checkContentLevel": 1,
  15. "isCountDownload": true,
  16. "isCountHits": false,
  17. "isCountHitsByDay": false,
  18. "isSaveImageInTextEditor": true,
  19. "isAutoPageInTextEditor": false,
  20. "autoPageWordNum": 1500,
  21. "isContentTitleBreakLine": false,
  22. "isAutoCheckKeywords": false,
  23. "photoSmallWidth": 70,
  24. "photoMiddleWidth": 400,
  25. "isWaterMark": false,
  26. "isImageWaterMark": false,
  27. "waterMarkPosition": 9,
  28. "waterMarkTransparency": 5,
  29. "waterMarkMinWidth": 200,
  30. "waterMarkMinHeight": 200,
  31. "waterMarkFormatString": "",
  32. "waterMarkFontName": "",
  33. "waterMarkFontSize": 12,
  34. "waterMarkImagePath": "",
  35. "isSeparatedWeb": false,
  36. "separatedWebUrl": "http://web.chinacampus.org",
  37. "webUrl": "/test2",
  38. "isSeparatedAssets": false,
  39. "separatedAssetsUrl": "",
  40. "assetsDir": "upload",
  41. "assetsUrl": "/test2/upload/",
  42. "channelFilePathRule": "/channels/{@ChannelID}.html",
  43. "contentFilePathRule": "/contents/{@ChannelID}/{@ContentID}.html",
  44. "isCreateContentIfContentChanged": true,
  45. "isCreateChannelIfChannelChanged": true,
  46. "isCreateShowPageInfo": false,
  47. "isCreateIe8Compatible": false,
  48. "isCreateBrowserNoCache": false,
  49. "isCreateJsIgnoreError": false,
  50. "isCreateWithJQuery": true,
  51. "isCreateDoubleClick": true,
  52. "createStaticMaxPage": 10,
  53. "isCreateStaticContentByAddDate": false,
  54. "createStaticContentAddDate": "0001-01-01 00:00:00",
  55. "isCrossSiteTransChecked": false,
  56. "configTemplateIsCodeMirror": true,
  57. "configVideoContentInsertWidth": 420,
  58. "configVideoContentInsertHeight": 280,
  59. "configExportType": "ContentExcel",
  60. "configExportPeriods": "0",
  61. "configExportDisplayAttributes": "Id,Title,LinkUrl,AddDate,Hits,GroupNameCollection,Tags,FreeReadings,FullReadingPrice,PaidReadings,PaperPrice,SubTitle,ImageUrl,VideoUrl,FileUrl,Content,Summary,Author,Source",
  62. "configExportIsChecked": "All",
  63. "configSelectImageCurrentUrl": "upload/images",
  64. "configSelectVideoCurrentUrl": "@/upload/videos",
  65. "configSelectFileCurrentUrl": "@/upload/files",
  66. "configUploadImageIsTitleImage": "False",
  67. "configUploadImageTitleImageWidth": "152",
  68. "configUploadImageTitleImageHeight": "109",
  69. "configUploadImageIsShowImageInTextEditor": "False",
  70. "configUploadImageIsLinkToOriginal": "False",
  71. "configUploadImageIsSmallImage": "False",
  72. "configUploadImageSmallImageWidth": "500",
  73. "configUploadImageSmallImageHeight": "",
  74. "siteSettingsCollection": "",
  75. "imageUploadDirectoryName": "upload/images",
  76. "imageUploadDateFormatString": "Month",
  77. "isImageUploadChangeFileName": true,
  78. "imageUploadTypeCollection": "gif|jpg|jpeg|bmp|png|pneg|swf",
  79. "imageUploadTypeMaxSize": 15360,
  80. "videoUploadDirectoryName": "upload/videos",
  81. "videoUploadDateFormatString": "Month",
  82. "isVideoUploadChangeFileName": true,
  83. "videoUploadTypeCollection": "asf|asx|avi|flv|mid|midi|mov|mp3|mp4|mpg|mpeg|ogg|ra|rm|rmb|rmvb|rp|rt|smi|swf|wav|webm|wma|wmv|viv",
  84. "videoUploadTypeMaxSize": 307200,
  85. "fileUploadDirectoryName": "upload/files",
  86. "fileUploadDateFormatString": "Month",
  87. "isFileUploadChangeFileName": true,
  88. "fileUploadTypeCollection": "zip,rar,7z,js,css,txt,doc,docx,ppt,pptx,xls,xlsx,pdf",
  89. "fileUploadTypeMaxSize": 307200
  90. }
  91. }
  92. }