1 例题 step 步骤 接口
请求地址:http://localhost:8080/apcompany/learn/step/valid?putIn=dd&step=1&questiongId=1
请求方式:POST
参数:putIn 输入答案 ,例如1 ,step 输入步骤,questiongId 问题ID
结果
false
或者
true
2 获取某到题目全部的步骤接口
请求地址:http://localhost:8080/apcompany/learn/step/{questiongId}
请求方式:POST
参数:questionId 问题的ID号
结果如下
[ { "id": 1, "proceduranswer": "9", "procedurequestiong": "the tangent point at x=3 is where the tangent line meets f(x) \n f(3)=", "questionId": 1, "step": 1 }, { "id": 2, "proceduranswer": "2x-1", "procedurequestiong": "from the power rule, we have \n f'(x)=", "questionId": 1, "step": 2 } ]
结果说明
1proceduranswer :过程答案
2procedurequestion 过程的问题
3.questionId 问题的ID号
4.step 第几步骤,从1开始
3.获取某到题目全部的步骤接口
请求地址:http://localhost:8080/apcompany/learn/step/{questiongId}/{stepId}
请求方式:POST
参数说明:questionId 问题的ID号,stepId 第几步骤的,从1开始
结果如下
{
"id": 2,
"proceduranswer": "",
"procedurequestiong": "from the power rule, we have \n f'(x)=",
"questionId": 1,
"step": 2
}
结果说明
1proceduranswer :过程答案
2procedurequestion 过程的问题
3.questionId 问题的ID号
4.step 第几步骤,从1开始
4 获取视频录像的接口
请求地址:http://localhost:8080/apcompany/learn/vedio/{keypointId}
请求方式:POST
参数说明
keypointId:知识点ID,也是接口文档一中的keypointId
结果如下
[
{
"id": 1,
"keypointId": 14,
"name": "Polynomial function differentiaiton",
"vediourl": "<embed height=\"415\" width=\"544\" quality=\"high\" allowfullscreen=\"true\" type=\"application/x-shockwave-flash\" src=\"//static.hdslb.com/miniloader.swf\" flashvars=\"aid=10370276&page=1\" pluginspage=\"//www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\"></embed>"
}
]
结果集说明
1.id主键
2.keypointId 知识点ID
3.name 知识点名称
4.vediourl :视频地址,包括富文本编辑后的脚本
5 获取正式题目的接口
请求地址:http://localhost:8080/apcompany/data/select/{keypointId}
请求方式:GET
keypointId:知识点ID,也是接口文档一中的keypointId
结果如下
[
{
"choices": [
{
"choise": "0",
"id": 1,
"questionid": 2,
"status": 0
},
{
"choise": "∞",
"id": 2,
"questionid": 2,
"status": 0
},
{
"choise": "Y=6x",
"id": 3,
"questionid": 2,
"status": 0
},
{
"choise": "Nonexist:不存在",
"id": 4,
"questionid": 2,
"status": 0
}
],
"ctime": 1503130809000,
"id": 2,
"keypointId": 0,
"question": "find an equation of the tangent line to f(x)=(x*x***-3*x*x +2X)(x*x*x -2x+3) at x=0",
"status": 0,
"tAnswers": {
"answer": "Nonexist:不存在",
"id": 2,
"questionid": 2,
"status": 0
},
"type": 0,
"utime": 1503130809000
}
]
结果集说明
question :问题内容
choises:选项列表
choise:选项内容
status:状态 0 有效,1 无效
tanswers: 答案
answer :正确答案