获取在str:coursename班级中,str:assignmentname作业中的所有题目
注意
后端对non_programming_answer字段的显示做出了区分
Authorization: Bearer ********************
curl --location --request GET 'http://127.0.0.1:8000/home/<str:coursename>/<str:assignmentname>/'
[
{
"id": 1,
"title": "Problem 1",
"content_problem": "Describe the process of normalization in databases.",
"score": 10,
"type": "text",
"response_limit": 500,
"non_programming_answer": "Normalization is the process of organizing data in a database...",
"score_get": 10
},
{
"id": 2,
"title": "Problem 2",
"content_problem": "What is the time complexity of a binary search algorithm?",
"score": 5,
"type": "choice",
"response_limit": null,
"non_programming_answer": "<-&a&->",
"score_get": 5
},
{
"id": 3,
"title": "Problem 3",
"content_problem": "Write a function to reverse a string.",
"score": 15,
"type": "programming",
"response_limit": 9,
"non_programming_answer": null,
"score_get": 0
}
]