Classroom-查询单个习题详情:响应参数

时间:2025-02-12 14:52:39

响应参数

状态码: 200

表3 响应Body参数

参数

参数类型

描述

id

String

习题id

name

String

习题名称

description

String

习题描述

difficult

DifficultInfo object

习题难度信息

exercise_type

Integer

习题类型编号

exercise_type_name

String

习题类型名称

order_count

Integer

习题库里习题编号

test_case_description

String

测试用例描述

knowledge_point

Array of KnowledgePointInfo objects

相关知识点

judge_type

Integer

判题类型

exercise_data

ExerciseDetailData object

习题详细内容及测试用例信息

表4 DifficultInfo

参数

参数类型

描述

id

String

难度id

name

String

难度名称

degree

Integer

难度等级

表5 KnowledgePointInfo

参数

参数类型

描述

id

String

知识点id

name

String

知识点名称

sequence

Integer

知识点顺序编号

表6 ExerciseDetailData

参数

参数类型

描述

exercise_code_resource

ExerciseCodeResource object

习题详细内容

exercise_case_resource

Array of ExerciseCaseResource objects

测试用例信息

表7 ExerciseCodeResource

参数

参数类型

描述

id

String

习题内容存储id

polymeric_resource_id

String

资源聚合id

content

String

习题内容

code_answer

String

参考答案

表8 ExerciseCaseResource

参数

参数类型

描述

id

String

测试用例存储id

polymeric_resource_id

String

资源聚合id

input_file

String

用例输入

output_file

String

用例输出

index

Integer

用例顺序位置

input_type

String

用例类型

状态码: 400

表9 响应Body参数

参数

参数类型

描述

error_code

String

异常错误码

error_msg

String

异常错误描述

状态码: 403

表10 响应Body参数

参数

参数类型

描述

error_code

String

异常错误码

error_msg

String

异常错误描述

状态码: 500

表11 响应Body参数

参数

参数类型

描述

error_code

String

异常错误码

error_msg

String

异常错误描述

support.huaweicloud.com/api-classroom/ShowExerciseDetail.html