[关闭]
@apis1990 2016-08-24T03:46:19.000000Z 字数 1271 阅读 1569

在线题库


在线题库--随机练习


1.URL:/service/api/get_random_parctices.php

测试地址:http://36.33.24.119:8081/api/get_random_parctices.php

2.请求方式:POST

3.请求参数:

参数 类型 是否必须 描述
license int 必选 牌照类型: C1, A2
subject int 必选 科目类型: 1, 4

4.接口返回结果

  1. {
  2. "code": 200,
  3. "data": [
  4. {
  5. "id": "816",
  6. "question": "下雨后路面湿滑,车辆行驶中紧急制动时,容易导致什么?",
  7. "an1": "引起发动机熄火",
  8. "an2": "不被其他车辆驾驶人发现",
  9. "an3": "因视线模糊而撞车",
  10. "an4": "发生侧滑、引发交通事故",
  11. "answertrue": "4",
  12. "imageurl": "",
  13. "explain": "给大伙上个关于水的物理课:在粗糙的物体表面有能摸的着的水时,水会减小摩擦;在粗糙的物体表面有极少的(摸不到,有湿润感觉)水时,会增加物体表面的粗糙程度增大摩擦力--如:数钞票时,在手上沾上些水,数钱数的又快又准等。!!!下雨天不是数钱,别急刹了我个亲!急刹加打方向--你会成为漂移达人的!!",
  14. "type": "2",
  15. "chapterid": "3",
  16. "SpeId": "213",
  17. "ctype": "C1",
  18. "stype": "1",
  19. "mimetype": "",
  20. "mediatype": 0
  21. },
  22. {
  23. "id": "800",
  24. "question": "机动车向左转弯、向左变更车道、驶离停车地点或者掉头时,提前开启左转向灯是为了什么?",
  25. "an1": "提示前车,将要向左变更行驶路线",
  26. "an2": "提示后车,将要向右变更行驶路线",
  27. "an3": "提示后车,将要向左变更行驶路线",
  28. "an4": "提示前车,将要向右变更行驶路线",
  29. "answertrue": "3",
  30. "imageurl": "",
  31. "explain": "变更车道或者掉头等一系列动作,都要提前3秒打转向灯。目的是为了提醒后车注意!",
  32. "type": "2",
  33. "chapterid": "2",
  34. "SpeId": "",
  35. "ctype": "C1",
  36. "stype": "1",
  37. "mimetype": "",
  38. "mediatype": 0
  39. },
  40. ...
  41. }
参数 类型 描述
code int 状态码:200 --- 成功 其它 --- 异常
data array 返回数据集
- - -
id int 题目id
question string 题目内容
an1 string 答案1
an2 string 答案2
an3 string 答案3
an4 string 答案4
answertrue int 正确答案
imageurl string 题目图片
explain string 答案解析
type int 题目类型:1判断题 2单选题 3多选题
SpeId int 特殊id
ctype string 驾照类型:C1 A1 A2 D
stype string 科目:1/4
mimetype string image/png , image/jpg
mediatype int 0 无 1 图片 2 视频或音频
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注