[关闭]
@JackieQu 2018-05-21T17:58:24.000000Z 字数 2415 阅读 281

错题本

儿童编程


获取错题目录

Method and Url Structure

Method Resource URL
GET /course/wrong_note_directory/

cURL Example

  1. curl -X GET -H 'Authorization: Token tester001' -d data{...}
  2. http://127.0.0.1:8000/program_face2face/course/wrong_note_directory/

JSON Response

  1. {
  2. "count": 1,
  3. "next": null,
  4. "previous": null,
  5. "results": [
  6. {
  7. "pk": 1,
  8. "owner": "tester001",
  9. "course": "Python1",
  10. "question_number": 2,
  11. "have_new": true
  12. }
  13. ]
  14. }

错题本详情

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

  1. curl -X POST -H 'Authorization: Token tester001' -d data{...}
  2. http://127.0.0.1:8000/program_face2face/course/my_wrong_note/?course=1

JSON Response

  1. {
  2. "count": 2,
  3. "next": null,
  4. "previous": null,
  5. "results": [
  6. {
  7. "pk": 3,
  8. "owner": "tester001",
  9. "course": 4,
  10. "lesson": 9,
  11. "tag": "9-1",
  12. "my_answer": "a",
  13. "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}"
  14. },
  15. {
  16. "pk": 2,
  17. "owner": "tester001",
  18. "course": 4,
  19. "lesson": 9,
  20. "tag": "9-2",
  21. "my_answer": "a",
  22. "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}"
  23. }
  24. ]
  25. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注