暂无描述
Authorization: Bearer ********************
{
"id": 6,
"question": [
{
"id": 7,
"title": "单选题1",
"type": 1,
"score": 10,
"options": {
"choice": [
{
"label": "选项1",
"value": "1"
},
{
"label": "选项2",
"value": "2"
}
],
"correctChoice": null,
"explain": "解析",
"userChoice": [
{
"label": "选项2",
}
],
}
},
{
"id": 12,
"title": "判断题",
"type": 3,
"score": 20,
"options": {
"choice": [
{
"label": "选项1",
"value": "正确"
},
{
"label": "选项2",
"value": "错误"
}
],
"correctChoice": null,
"explain": "",
"userChoice": [
{
"label": "选项2",
}
],
}
},
{
"id": 14,
"title": "我是#填空符#,你是#填空符#",
"type": 4,
"score": 25,
"options": {
"choice": [
{
"label": "选项1",
"value": ""
}
],
"correctChoice": null,
"explain": "",
"userChoice": [
{
"label": "金刚腿",
},
{
"label": "铁头功",
}
],
}
}
],
}
curl --location --request POST 'https://api.tolink.cloud/training/exam/submitExam' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 6,
"question": [
{
"id": 7,
"title": "单选题1",
"type": 1,
"score": 10,
"options": {
"choice": [
{
"label": "选项1",
"value": "1"
},
{
"label": "选项2",
"value": "2"
}
],
"correctChoice": null,
"explain": "解析",
"userChoice": [
{
"label": "选项2",
}
],
}
},
{
"id": 12,
"title": "判断题",
"type": 3,
"score": 20,
"options": {
"choice": [
{
"label": "选项1",
"value": "正确"
},
{
"label": "选项2",
"value": "错误"
}
],
"correctChoice": null,
"explain": "",
"userChoice": [
{
"label": "选项2",
}
],
}
},
{
"id": 14,
"title": "我是#填空符#,你是#填空符#",
"type": 4,
"score": 25,
"options": {
"choice": [
{
"label": "选项1",
"value": ""
}
],
"correctChoice": null,
"explain": "",
"userChoice": [
{
"label": "金刚腿",
},
{
"label": "铁头功",
}
],
}
}
],
}'
{}