11. 静态网页接口
11.1. 获取静态网页分页列表
URL: /api/www/getList
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取静态网页分页列表
Request-example:
curl -X GET -i /api/www/getList
Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success |
boolean |
请求结果 |
- |
status |
string |
请求状态 200:请求成功 401:token无效 500:服务器错误 |
- |
msg |
string |
错误信息 |
- |
obj |
array |
返回内容 |
- |
└─id |
string |
主键 |
- |
└─dir |
string |
路径 |
- |
└─descr |
string |
描述 |
- |
Response-example:
{
"success": true,
"status": "",
"msg": "",
"obj": [
{
"id": "",
"dir": "",
"descr": ""
}
]
}
11.2. 添加或编辑静态网页
URL: /api/www/addOver
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 添加或编辑静态网页
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id |
string |
主键 |
false |
- |
dir |
string |
路径 |
false |
- |
descr |
string |
描述 |
false |
- |
dirTemp |
string |
zip文件路径 |
false |
- |
Request-example:
curl -X GET -i /api/www/addOver?descr=&dirTemp=&dir=&id=
Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success |
boolean |
请求结果 |
- |
status |
string |
请求状态 200:请求成功 401:token无效 500:服务器错误 |
- |
msg |
string |
错误信息 |
- |
obj |
object |
返回内容 |
- |
Response-example:
{
"success": true,
"status": "",
"msg": "",
"obj": {}
}
11.3. 清空静态网页路径
URL: /api/www/clean
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 清空静态网页路径
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id |
string |
静态网页id |
false |
- |
Request-example:
curl -X GET -i /api/www/clean?id=
Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success |
boolean |
请求结果 |
- |
status |
string |
请求状态 200:请求成功 401:token无效 500:服务器错误 |
- |
msg |
string |
错误信息 |
- |
obj |
object |
返回内容 |
- |
Response-example:
{
"success": true,
"status": "",
"msg": "",
"obj": {}
}
11.4. 删除静态网页
URL: /api/www/del
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 删除静态网页
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id |
string |
静态网页id |
false |
- |
Request-example:
curl -X GET -i /api/www/del?id=
Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success |
boolean |
请求结果 |
- |
status |
string |
请求状态 200:请求成功 401:token无效 500:服务器错误 |
- |
msg |
string |
错误信息 |
- |
obj |
object |
返回内容 |
- |
Response-example:
{
"success": true,
"status": "",
"msg": "",
"obj": {}
}
11.5. 静态网页详情
URL: /api/www/detail
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 静态网页详情
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id |
string |
静态网页id |
false |
- |
Request-example:
curl -X GET -i /api/www/detail?id=
Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success |
boolean |
请求结果 |
- |
status |
string |
请求状态 200:请求成功 401:token无效 500:服务器错误 |
- |
msg |
string |
错误信息 |
- |
obj |
object |
返回内容 |
- |
└─id |
string |
主键 |
- |
└─dir |
string |
路径 |
- |
└─descr |
string |
描述 |
- |
Response-example:
{
"success": true,
"status": "",
"msg": "",
"obj": {
"id": "",
"dir": "",
"descr": ""
}
}
11.6. 获取静态网页描述
URL: /api/www/getDescr
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取静态网页描述
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id |
string |
静态网页id |
false |
- |
Request-example:
curl -X GET -i /api/www/getDescr?id=
Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success |
boolean |
请求结果 |
- |
status |
string |
请求状态 200:请求成功 401:token无效 500:服务器错误 |
- |
msg |
string |
错误信息 |
- |
obj |
string |
返回内容 |
- |
Response-example:
{
"success": true,
"status": "",
"msg": "",
"obj": ""
}
11.7. 编辑静态网页描述
URL: /api/www/editDescr
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 编辑静态网页描述
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id |
string |
静态网页id |
false |
- |
descr |
string |
静态网页描述 |
false |
- |
Request-example:
curl -X GET -i /api/www/editDescr?id=&descr=
Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success |
boolean |
请求结果 |
- |
status |
string |
请求状态 200:请求成功 401:token无效 500:服务器错误 |
- |
msg |
string |
错误信息 |
- |
obj |
object |
返回内容 |
- |
Response-example:
{
"success": true,
"status": "",
"msg": "",
"obj": {}
}