错题本文档
橙旭园服务器
错题本列表
Method and URL Structure
| Method |
Method Resource URL |
Descriptions |
Authentications Required |
| GET |
/server/job_management/list_wrong_question/ |
列表 |
YES |
cURL Example
curl -X GET http://127.0.0.1:8000/server/job_management/list_wrong_question/
Response
{ "count": 36, "next": "http://127.0.0.1:8000/server/job_management/list_wrong_question/?page=2&page_size=1", "previous": null, "results": [ { "pk": 316, "owner": { "name": "勿问情殇_1111_23", "avatar": "https://static1.bcjiaoyu.com/bcgame_face2face/15201052252/5690023e83a72af4ff5be0badaadfbe4_k.gif-658x658", "user": "15201052252", "nickname": "chen", "realname": "陈微", "user_id": 367, "is_staff": false, "segment": { "name": "黄金", "image": "https://static1.bcjiaoyu.com/community/touxiangkuang/king.png" }, "job_title": "讲师" }, "question": { "pk": 1, "title": "问题的题目描述", "photo": "问题的图片描述", "question_type": "choice", "analysis": "题目分析", "options": [ { "pk": 2, "number": "B", "title": "选项文本描述", "photo": "选项图片描述", "question": 1, "option_type": "middle", "match_options": null, "is_answer": false }, { "pk": 1, "number": "A", "title": "选项文本描述", "photo": "选项图片描述", "question": 1, "option_type": "middle", "match_options": null, "is_answer": false } ], "course_category": { "pk": 2, "id": 2, "deleted": false, "create_time": "2019-04-10T16:13:25.553121", "order_index": 1000, "name": "编程创作", "desciption": "编程创作", "public": false }, "question_category": { "pk": 1, "title": "Python Level 1" }, "remark": "", "difficult_grade": "simple", "answers": null }, "is_right": false, "user_answers": [ 1 ], "question_answers": [] } ]}
错题详情
Method and URL Structure
| Method |
Method Resource URL |
Descriptions |
Authentications Required |
| GET |
server/job_management/detail_wrong_question/${pk}/ |
详情 |
YES |
cURL Example
curl -X GET http://127.0.0.1:8000/server/job_management/detail_wrong_question/316/
Response
{ "pk": 316, "owner": { "name": "勿问情殇_1111_23", "avatar": "https://static1.bcjiaoyu.com/bcgame_face2face/15201052252/5690023e83a72af4ff5be0badaadfbe4_k.gif-658x658", "user": "15201052252", "nickname": "chen", "realname": "陈微", "user_id": 367, "is_staff": false, "segment": { "name": "黄金", "image": "https://static1.bcjiaoyu.com/community/touxiangkuang/king.png" }, "job_title": "讲师" }, "question": { "pk": 1, "title": "问题的题目描述", "photo": "问题的图片描述", "question_type": "choice", "analysis": "题目分析", "options": [ { "pk": 2, "number": "B", "title": "选项文本描述", "photo": "选项图片描述", "question": 1, "option_type": "middle", "match_options": null, "is_answer": false }, { "pk": 1, "number": "A", "title": "选项文本描述", "photo": "选项图片描述", "question": 1, "option_type": "middle", "match_options": null, "is_answer": false } ], "course_category": { "pk": 2, "id": 2, "deleted": false, "create_time": "2019-04-10T16:13:25.553121", "order_index": 1000, "name": "编程创作", "desciption": "编程创作", "public": false }, "question_category": { "pk": 1, "title": "Python Level 1" }, "remark": "", "difficult_grade": "simple", "answers": null }, "is_right": false, "user_answers": [ 1 ], "question_answers": []}
错题重答
Method and URL Structure
| Method |
Method Resource URL |
Descriptions |
Authentications Required |
| PUT |
/server/job_management/answer_wrong_question/${pk}/ |
重答 |
YES |
cURL Example
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{ "option":[7]}填空题 示例2{ "option":["填空题答案1", "填空题答案2"]}连线题 示例 3{ "option":{ "44":[43,42], 键是左选项的 pk,对应值是右选项的 pk 组 "46":[45] }}
Response
{ "pk": 316, "owner": { "name": "勿问情殇_1111_23", "avatar": "https://static1.bcjiaoyu.com/bcgame_face2face/15201052252/5690023e83a72af4ff5be0badaadfbe4_k.gif-658x658", "user": "15201052252", "nickname": "chen", "realname": "陈微", "user_id": 367, "is_staff": false, "segment": { "name": "黄金", "image": "https://static1.bcjiaoyu.com/community/touxiangkuang/king.png" }, "job_title": "讲师" }, "question": { "pk": 1, "title": "问题的题目描述", "photo": "问题的图片描述", "question_type": "choice", "analysis": "题目分析", "options": [ { "pk": 2, "number": "B", "title": "选项文本描述", "photo": "选项图片描述", "question": 1, "option_type": "middle", "match_options": null, "is_answer": false }, { "pk": 1, "number": "A", "title": "选项文本描述", "photo": "选项图片描述", "question": 1, "option_type": "middle", "match_options": null, "is_answer": false } ], "course_category": { "pk": 2, "id": 2, "deleted": false, "create_time": "2019-04-10T16:13:25.553121", "order_index": 1000, "name": "编程创作", "desciption": "编程创作", "public": false }, "question_category": { "pk": 1, "title": "Python Level 1" }, "remark": "", "difficult_grade": "simple", "answers": null }, "is_right": false, "user_answers": [ 1 ], "question_answers": []}