Appearance
获取课程任务目录列表
GET /courses/{defaultCourseId}/items权限
- 不需要认证
参数
| 字段 | 是否必填 | 描述 |
|---|---|---|
onlyPublished int string | 否 | onlyPublished=1,过滤掉未发布的任务 |
响应
成功响应CourseItem结构体
| 字段 | 描述 |
|---|---|
type enum{task,chapter,unit} | 类型 |
number int string | 显示的数字 |
seq int string | 任务的顺序 |
title string | 标题 |
task CourseTask | 任务 |
错误
失败响应Error结构体,错误码有
| Code | 错误说明 | HTTP状态码 |
|---|---|---|
| 10 | 教学计划不存在 | 404 |