# REST API
# 查询监考记录
# 参数
| 名称 | 类型 | 必需 | 描述 | 
|---|---|---|---|
| sorts | int | 是 | 排序方式( +started_at、-started_at),+-分别表示正序、倒序 | 
| offset | int | 是 | 查询开始记录数 | 
| limit | int | 是 | 查询限制记录条数(<=1000) | 
# 响应
{
  "data": [
    {
      "no": "2dde1263060c47adb134dc93d51df7ec",
      "subject_no": "test_exam_no",
      "user_no": "test_user_no",
      "ip": "111.222.333.444",
      "started_at": 1577631839498,
      "stopped_at": 219806,
      "last_active_at": 1577631839498,
      "status": 1,
      "stop_type": 1577631839498
    },
    ...
  ],
  "paging": {
    "total": "100",
    "offset": "0",
    "limit": 30
  }
}
- status: 监考状态 (- 1: 在线,- 2: 掉线,- 3: 已结束)。
- stop_type: 监考停止类型(- 1: 正常结束,- 2:掉线超时关闭,- 3: 被顶替)
# 查询作弊行为捕捉记录
GET /v1/captures
# 参数
| 名称 | 类型 | 必需 | 描述 | 
|---|---|---|---|
| sorts | int | 是 | 排序方式( +captured_at、-captured_at) | 
| offset | int | 是 | 查询开始记录数 | 
| limit | int | 是 | 查询限制记录条数(<=1000) | 
# 响应
{
  "data": [
    {
      "no": "2dde1263060c47adb134dc93d51df7ec",
      "inspection_no": "2dde1263060c47a",
      "subject_no": "test_exam_no",
      "user_no": "test_user_no",
      "picture": "//xxxxx/xxxx.jpg",
      "behavior": "not_self",
      "captured_at": 1577631839498,
    },
    ...
  ],
  "paging": {
    "total": "100",
    "offset": "0",
    "limit": 30
  }
}
- behavior:行为类型。- no_face: 未检测到正脸(比如在东张西望)
- many_face: 检测到多张人脸
- not_self:非本人
- page_hide: 页面失去焦点