tester-web(畸变矫正服务)

tester-web(畸变矫正服务)

Base URLs:

Authentication

任务管理

POST 任务列表接口

POST /api/tasks/list

Body 请求参数

{}

请求参数

名称 位置 类型 必选 说明
token header string 登录token
body body object none

返回示例

200 Response

{
  "code": 200,
  "data": {
    "list": [
      {
        "id": 1,
        "class": "long.LongTask",
        "name": "长任务",
        "describe": null,
        "is_running": 0,
        "last_result": null,
        "last_start_time": null,
        "update_time": null,
        "last_log": null,
        "is_use": 1,
        "trigger": null,
        "trigger_value": null
      },
      {
        "id": 2,
        "class": "short.ShortTask",
        "name": "短任务",
        "describe": null,
        "is_running": 0,
        "last_result": null,
        "last_start_time": null,
        "update_time": null,
        "last_log": null,
        "is_use": 1,
        "trigger": null,
        "trigger_value": null
      }
    ],
    "total": 2,
    "page_total": 1
  },
  "msg": "sucess"
}

500 Response

{
  "code": 503,
  "msg": "服务异常请稍后重试"
}

返回结果

状态码 状态码含义 说明 数据模型
200 OK none Inline
500 Internal Server Error none Inline

返回数据结构

状态码 200

名称 类型 必选 约束 中文名 说明
» code integer true none none
» data object true none none
»» list [object] true none none
»»» id integer true none none
»»» class string¦null false none none
»»» name string true none none
»»» describe string¦null true none none
»»» is_running integer true none none
»»» last_result integer true none none
»»» last_start_time string true none none
»»» update_time null true none none
»»» last_log string true none none
»»» is_use integer true none none
»»» trigger null true none none
»»» trigger_value null true none none
»» total integer true none none
»» page_total integer true none none
» msg string true none none

POST 修改任务状态

POST /api/task/status

Body 请求参数

{
  "id": 1,
  "enabled": true
}

请求参数

名称 位置 类型 必选 说明
token header string none
body body object none

返回示例

200 Response

{
  "code": 200,
  "data": null,
  "msg": "sucess"
}

返回结果

状态码 状态码含义 说明 数据模型
200 OK none Inline

返回数据结构

状态码 200

名称 类型 必选 约束 中文名 说明
» code integer true none none
» data object¦null true none none
» msg string true none none