1 Example question step step interface
请求地址:http://localhost:8080/apcompany/learn/step/valid?putIn=dd&step=1&questiongId=1
Request method: POST
Parameters: putIn input answer, such as 1, step input step, questiongId question ID
result
false
or
true
2 Get all the step interfaces of a certain topic
Request address: http://localhost:8080/apcompany/learn/step/ {questiongId}
Request method: POST
Parameters: questionId The ID number of the question
The result is as follows
[ { "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 } ]
Result description
1 proceduranswer : procedur answer
2 procedurequestion procedure questions
3. questionId The ID number of the question
4.step The first few steps, starting from 1
3. Get all the steps interface of a certain topic
Request address: http://localhost:8080/apcompany/learn/step/ {questiongId} /{stepId}
Request method: POST
Parameter description: questionId is the ID number of the question, stepId is the number of steps, starting from 1
The result is as follows
{ "id": 2, "proceduranswer": "", "procedurequestiong": "from the power rule, we have \n f'(x)=", "questionId": 1, "step": 2 }
Result description
1 proceduranswer : procedur answer
2 procedurequestion procedure questions
3. questionId The ID number of the question
4.step The first few steps, starting from 1
4 Get the interface of video recording
Request address: http://localhost:8080/apcompany/learn/vedio/{ keypointId }
Request method: 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 :正确答案