[关闭]
@chengxuyuan 2020-08-03T09:16:02.000000Z 字数 4221 阅读 433

错题本文档

橙旭园服务器


错题本列表

Method and URL Structure

Method Method Resource URL Descriptions Authentications Required
GET /server/job_management/list_wrong_question/ 列表 YES

cURL Example

  1. curl -X GET http://127.0.0.1:8000/server/job_management/list_wrong_question/

Response

  1. {
  2. "count": 36,
  3. "next": "http://127.0.0.1:8000/server/job_management/list_wrong_question/?page=2&page_size=1",
  4. "previous": null,
  5. "results": [
  6. {
  7. "pk": 316,
  8. "owner": {
  9. "name": "勿问情殇_1111_23",
  10. "avatar": "https://static1.bcjiaoyu.com/bcgame_face2face/15201052252/5690023e83a72af4ff5be0badaadfbe4_k.gif-658x658",
  11. "user": "15201052252",
  12. "nickname": "chen",
  13. "realname": "陈微",
  14. "user_id": 367,
  15. "is_staff": false,
  16. "segment": {
  17. "name": "黄金",
  18. "image": "https://static1.bcjiaoyu.com/community/touxiangkuang/king.png"
  19. },
  20. "job_title": "讲师"
  21. },
  22. "question": {
  23. "pk": 1,
  24. "title": "问题的题目描述",
  25. "photo": "问题的图片描述",
  26. "question_type": "choice",
  27. "analysis": "题目分析",
  28. "options": [
  29. {
  30. "pk": 2,
  31. "number": "B",
  32. "title": "选项文本描述",
  33. "photo": "选项图片描述",
  34. "question": 1,
  35. "option_type": "middle",
  36. "match_options": null,
  37. "is_answer": false
  38. },
  39. {
  40. "pk": 1,
  41. "number": "A",
  42. "title": "选项文本描述",
  43. "photo": "选项图片描述",
  44. "question": 1,
  45. "option_type": "middle",
  46. "match_options": null,
  47. "is_answer": false
  48. }
  49. ],
  50. "course_category": {
  51. "pk": 2,
  52. "id": 2,
  53. "deleted": false,
  54. "create_time": "2019-04-10T16:13:25.553121",
  55. "order_index": 1000,
  56. "name": "编程创作",
  57. "desciption": "编程创作",
  58. "public": false
  59. },
  60. "question_category": {
  61. "pk": 1,
  62. "title": "Python Level 1"
  63. },
  64. "remark": "",
  65. "difficult_grade": "simple",
  66. "answers": null
  67. },
  68. "is_right": false,
  69. "user_answers": [
  70. 1
  71. ],
  72. "question_answers": []
  73. }
  74. ]
  75. }

错题详情

Method and URL Structure

Method Method Resource URL Descriptions Authentications Required
GET server/job_management/detail_wrong_question/${pk}/ 详情 YES

cURL Example

  1. curl -X GET http://127.0.0.1:8000/server/job_management/detail_wrong_question/316/

Response

  1. {
  2. "pk": 316,
  3. "owner": {
  4. "name": "勿问情殇_1111_23",
  5. "avatar": "https://static1.bcjiaoyu.com/bcgame_face2face/15201052252/5690023e83a72af4ff5be0badaadfbe4_k.gif-658x658",
  6. "user": "15201052252",
  7. "nickname": "chen",
  8. "realname": "陈微",
  9. "user_id": 367,
  10. "is_staff": false,
  11. "segment": {
  12. "name": "黄金",
  13. "image": "https://static1.bcjiaoyu.com/community/touxiangkuang/king.png"
  14. },
  15. "job_title": "讲师"
  16. },
  17. "question": {
  18. "pk": 1,
  19. "title": "问题的题目描述",
  20. "photo": "问题的图片描述",
  21. "question_type": "choice",
  22. "analysis": "题目分析",
  23. "options": [
  24. {
  25. "pk": 2,
  26. "number": "B",
  27. "title": "选项文本描述",
  28. "photo": "选项图片描述",
  29. "question": 1,
  30. "option_type": "middle",
  31. "match_options": null,
  32. "is_answer": false
  33. },
  34. {
  35. "pk": 1,
  36. "number": "A",
  37. "title": "选项文本描述",
  38. "photo": "选项图片描述",
  39. "question": 1,
  40. "option_type": "middle",
  41. "match_options": null,
  42. "is_answer": false
  43. }
  44. ],
  45. "course_category": {
  46. "pk": 2,
  47. "id": 2,
  48. "deleted": false,
  49. "create_time": "2019-04-10T16:13:25.553121",
  50. "order_index": 1000,
  51. "name": "编程创作",
  52. "desciption": "编程创作",
  53. "public": false
  54. },
  55. "question_category": {
  56. "pk": 1,
  57. "title": "Python Level 1"
  58. },
  59. "remark": "",
  60. "difficult_grade": "simple",
  61. "answers": null
  62. },
  63. "is_right": false,
  64. "user_answers": [
  65. 1
  66. ],
  67. "question_answers": []
  68. }

错题重答

Method and URL Structure

Method Method Resource URL Descriptions Authentications Required
PUT /server/job_management/answer_wrong_question/${pk}/ 重答 YES

cURL Example

  1. curl -X GET http://127.0.0.1:8000/server/job_management/answer_wrong_question/316/

Request Parameters

Name Description Required Default
option 用户选择的选项的pk组 或者 用户所填的答案组 YES

Request Data

  1. 选择题 示例1
  2. {
  3. "option":[7]
  4. }
  5. 填空题 示例2
  6. {
  7. "option":["填空题答案1", "填空题答案2"]
  8. }
  9. 连线题 示例 3
  10. {
  11. "option":{
  12. "44":[43,42], 键是左选项的 pk,对应值是右选项的 pk
  13. "46":[45]
  14. }
  15. }

Response

  1. {
  2. "pk": 316,
  3. "owner": {
  4. "name": "勿问情殇_1111_23",
  5. "avatar": "https://static1.bcjiaoyu.com/bcgame_face2face/15201052252/5690023e83a72af4ff5be0badaadfbe4_k.gif-658x658",
  6. "user": "15201052252",
  7. "nickname": "chen",
  8. "realname": "陈微",
  9. "user_id": 367,
  10. "is_staff": false,
  11. "segment": {
  12. "name": "黄金",
  13. "image": "https://static1.bcjiaoyu.com/community/touxiangkuang/king.png"
  14. },
  15. "job_title": "讲师"
  16. },
  17. "question": {
  18. "pk": 1,
  19. "title": "问题的题目描述",
  20. "photo": "问题的图片描述",
  21. "question_type": "choice",
  22. "analysis": "题目分析",
  23. "options": [
  24. {
  25. "pk": 2,
  26. "number": "B",
  27. "title": "选项文本描述",
  28. "photo": "选项图片描述",
  29. "question": 1,
  30. "option_type": "middle",
  31. "match_options": null,
  32. "is_answer": false
  33. },
  34. {
  35. "pk": 1,
  36. "number": "A",
  37. "title": "选项文本描述",
  38. "photo": "选项图片描述",
  39. "question": 1,
  40. "option_type": "middle",
  41. "match_options": null,
  42. "is_answer": false
  43. }
  44. ],
  45. "course_category": {
  46. "pk": 2,
  47. "id": 2,
  48. "deleted": false,
  49. "create_time": "2019-04-10T16:13:25.553121",
  50. "order_index": 1000,
  51. "name": "编程创作",
  52. "desciption": "编程创作",
  53. "public": false
  54. },
  55. "question_category": {
  56. "pk": 1,
  57. "title": "Python Level 1"
  58. },
  59. "remark": "",
  60. "difficult_grade": "simple",
  61. "answers": null
  62. },
  63. "is_right": false,
  64. "user_answers": [
  65. 1
  66. ],
  67. "question_answers": []
  68. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注