POST /server/main/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projects/<project_id>/scans/create/
GET /server/main/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projects/<project_id>/jobs/
{
"data": {
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 1,
"state": 2,
"result_code": 0,
"result_msg": "success",
"code_line_num": 1000,
"comment_line_num": 5,
"blank_line_num": 305,
"total_line_num": 1400
}
]
},
"code": 0,
"msg": "请求成功",
"status_code": 200
}
GET /server/main/api/orgs/<org_sid>/teams/<team_name>/repos/<repo_id>/projects/<project_id>/jobs/<job_id>/detail/
{
"data": {
"id": 1,
"scan_id": 1,
"create_time": "2021-01-28T10:27:26.442961+08:00",
"waiting_time": "1",
"start_time": "2021-01-28T11:14:56.760427+08:00",
"execute_time": "3",
"project": {
"id": 1,
"branch": "master",
"repo_id": 1,
"scan_scheme": 1,
"repo_scm_url": "http://github.com/xxx/test_demo.git"
},
"end_time": "2021-01-28T11:14:59.760427+08:00",
"expire_time": "2021-01-28T14:07:52.968932+08:00",
"task_num": 1,
"task_done": 1,
"tasks": [
{
"id": 1,
"module": "codelint",
"task_name": "pylint",
"progress_rate": 1,
"state": 2,
"result_code": 0,
"result_msg": "success",
"result_path": null
}
],
"co_jobs": [],
"state": 2,
"result_code": 0,
"result_code_msg": null,
"result_msg": "success",
"result_path": null,
"remarks": null,
"remarked_by": null,
"code_line_num": 1000,
"comment_line_num": 5,
"blank_line_num": 305,
"total_line_num": 1400,
"created_from": "codedog_web",
"creator": "creator"
},
"code": 0,
"msg": "请求成功",
"status_code": 200
}