错题本
儿童编程
- 学习/复习中答错题会录入错题本
/userinfo/add_reward/接口前端需要添加answer字段
获取错题目录
Method and Url Structure
| Method |
Resource URL |
| GET |
/course/wrong_note_directory/ |
cURL Example
curl -X GET -H 'Authorization: Token tester001' -d data{...}http://127.0.0.1:8000/program_face2face/course/wrong_note_directory/
JSON Response
{ "count": 1, "next": null, "previous": null, "results": [ { "pk": 1, "owner": "tester001", "course": "Python1", "question_number": 2, "have_new": true } ]}
错题本详情
Method and Url Structure
| Method |
Resource URL |
| GET |
/course/my_wrong_note/ |
Request and Parameters
| Name |
Description |
Required |
Default |
| course |
错题目录pk |
YES |
|
Request
cURL Example
curl -X POST -H 'Authorization: Token tester001' -d data{...}http://127.0.0.1:8000/program_face2face/course/my_wrong_note/?course=1
JSON Response
{ "count": 2, "next": null, "previous": null, "results": [ { "pk": 3, "owner": "tester001", "course": 4, "lesson": 9, "tag": "9-1", "my_answer": "a", "json": "{\n \"action\": [\n {\n \"content\": \"A\", \n \"type\": \"text\"\n }, \n {\n \"content\": \"B\", \n \"type\": \"text\"\n }, \n {\n \"content\": \"C\", \n \"type\": \"text\"\n }\n ], \n \"answer\": \"A\", \n \"correct\": [\n {\n \"action\": \"下一条\", \n \"chapter\": 26, \n \"grow_number\": 4, \n \"message\": \"答对了\", \n \"zuan_number\": 6\n }\n ], \n \"exercises\": true, \n \"imgs\": [], \n \"message\": \"关于加号运算,描述正确的是?\", \n \"options\": [\n {\n \"content\": \"A\", \n \"imgs\": [], \n \"message\": \"可以将两个数字进行和运算\"\n }, \n {\n \"content\": \"B\", \n \"imgs\": [], \n \"message\": \"不可以将两个字符串连接\"\n }, \n {\n \"content\": \"C\", \n \"imgs\": [], \n \"message\": \"不可以将两个列表进行拼接\"\n }\n ], \n \"tag\": \"9-1\", \n \"wrong\": [\n {\n \"action\": \"下一条\", \n \"chapter\": 25, \n \"grow_number\": 0, \n \"message\": \"答错了\", \n \"zuan_number\": 0\n }\n ]\n}" }, { "pk": 2, "owner": "tester001", "course": 4, "lesson": 9, "tag": "9-2", "my_answer": "a", "json": "{\n \"action\": [\n {\n \"content\": \"A\", \n \"type\": \"text\"\n }, \n {\n \"content\": \"B\", \n \"type\": \"text\"\n }, \n {\n \"content\": \"C\", \n \"type\": \"text\"\n }\n ], \n \"answer\": \"C\", \n \"correct\": [\n {\n \"action\": \"下一条\", \n \"chapter\": 28, \n \"grow_number\": 1, \n \"message\": \"答对了\", \n \"zuan_number\": 5\n }\n ], \n \"exercises\": true, \n \"imgs\": [], \n \"message\": \"字符串的特点,描述错误的是?\", \n \"options\": [\n {\n \"content\": \"A\", \n \"imgs\": [], \n \"message\": \"print打印时,会原样输出里面的内容\"\n }, \n {\n \"content\": \"B\", \n \"imgs\": [], \n \"message\": \"用双引号或单引号括起来\"\n }, \n {\n \"content\": \"C\", \n \"imgs\": [], \n \"message\": \"字符串是没有办法做加法操作的\"\n }\n ], \n \"tag\": \"9-2\", \n \"wrong\": [\n {\n \"action\": \"下一条\", \n \"chapter\": 27, \n \"grow_number\": 0, \n \"message\": \"答错了\", \n \"zuan_number\": 0\n }\n ]\n}" } ]}