Api Documentation
Version : 1.0
Lizenz : Apache 2.0
Lizenz-URL : http://www.apache.org/licenses/LICENSE-2.0
Nutzungsbedingungen : urn:tos
Host : localhost:8080
Basis-Pfad : /
- 学生接口 : Student Controller
- 教师接口 : Teacher Controller
- 管理员接口 : Admin Controller
GET /config
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
- 管理员接口
POST /config/casLoginUrl
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Query | name verpflichtend |
CAS登陆地址 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
application/json
\*/*
- 管理员接口
POST /config/casLogoutUrl
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Query | name verpflichtend |
CAS登出地址 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
application/json
\*/*
- 管理员接口
POST /config/casServerUrl
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Query | name verpflichtend |
CAS服务器地址 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
application/json
\*/*
- 管理员接口
POST /config/filePath
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Query | name verpflichtend |
文件目录地址 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
application/json
\*/*
- 管理员接口
POST /config/init
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Query | password verpflichtend |
新密码 | string |
Query | username verpflichtend |
新用户名 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
application/json
\*/*
- 管理员接口
GET /config/init
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
- 管理员接口
POST /config/localServerUrl
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Query | name verpflichtend |
本地服务器地址 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
application/json
\*/*
- 管理员接口
POST /config/login
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Query | password verpflichtend |
密码 | string |
Query | username verpflichtend |
用户名 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
application/json
\*/*
- 管理员接口
GET /config/login
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
- 管理员接口
POST /config/loginSuccessUrl
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Query | name verpflichtend |
CAS登陆成功跳转地址 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
application/json
\*/*
- 管理员接口
GET /config/logout
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
- 管理员接口
POST /config/tempDir
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Body | name verpflichtend |
打包临时目录地址 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
application/json
\*/*
- 管理员接口
POST /config/user
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Query | password verpflichtend |
新密码 | string |
Query | username verpflichtend |
新用户名 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | string |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
application/json
\*/*
- 管理员接口
GET /student/down/{studentNumber}/{workId}
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Header | range verpflichtend |
Range请求头(用于判断是否需要支持多线程下载和断点续传) | string |
Path | studentNumber verpflichtend |
学号 | string |
Path | workId verpflichtend |
作业ID | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
- 学生接口
POST /student/group
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Query | code verpflichtend |
邀请码 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | Group |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
application/json
\*/*
application/json;charset=UTF-8
- 学生接口
GET /student/group/exist
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | RestModel |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
application/json;charset=UTF-8
- 学生接口
DELETE /student/group/{groupId}
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Path | groupId verpflichtend |
群组ID | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | Kein Inhalt |
204 | No Content | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
\*/*
- 学生接口
GET /student/groups
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | < Group > array |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
application/json;charset=UTF-8
- 学生接口
GET /student/upload/{workId}
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Path | workId verpflichtend |
作业ID | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | Upload |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
application/json;charset=UTF-8
- 学生接口
POST /student/work/{workId}
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Path | workId verpflichtend |
作业ID | string |
FormData | file verpflichtend |
上传的作业 | file |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | Kein Inhalt |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
multipart/form-data
\*/*
- 学生接口
DELETE /student/work/{workId}
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Path | workId verpflichtend |
作业ID | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | Kein Inhalt |
204 | No Content | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
\*/*
- 学生接口
GET /student/works/done
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | < WorkModel > array |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
application/json;charset=UTF-8
- 学生接口
GET /student/works/un_done
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | < WorkModel > array |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
application/json;charset=UTF-8
- 学生接口
GET /teacher/down/{workId}
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Header | range verpflichtend |
Range请求头(用于判断是否需要支持多线程下载和断点续传) | string |
Path | workId verpflichtend |
作业ID | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
- 教师接口
POST /teacher/group
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Query | groupName verpflichtend |
教师添加的组名 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | Group |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
application/json
\*/*
application/json;charset=UTF-8
- 教师接口
GET /teacher/group/exist
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | RestModel |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
application/json;charset=UTF-8
- 教师接口
DELETE /teacher/group/{id}
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Path | id verpflichtend |
要删除的群组ID | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | Kein Inhalt |
204 | No Content | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
\*/*
- 教师接口
PATCH /teacher/group/{id}/{name}
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Path | id verpflichtend |
群组id | string |
Path | name verpflichtend |
修改的新群组名 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | Kein Inhalt |
204 | No Content | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
application/json
\*/*
- 教师接口
GET /teacher/groups
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | < Group > array |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
application/json;charset=UTF-8
- 教师接口
GET /teacher/pack/{workId}
下载所有作业之前必须先调用该API
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Path | workId verpflichtend |
作业ID | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | RestModel |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
- 教师接口
POST /teacher/work
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Query | groupId verpflichtend |
群ID | string |
Query | workName verpflichtend |
作业名 | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | Work |
201 | Created | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
application/json
\*/*
application/json;charset=UTF-8
- 教师接口
GET /teacher/work/{groupId}
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Path | groupId verpflichtend |
群ID | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | < WorkModel > array |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
application/json;charset=UTF-8
- 教师接口
DELETE /teacher/work/{workId}
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Path | workId verpflichtend |
作业ID | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | Kein Inhalt |
204 | No Content | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
\*/*
- 教师接口
PATCH /teacher/work/{workId}/{enabled}
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Path | enabled verpflichtend |
开启状态 | string |
Path | workId verpflichtend |
作业ID | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | Kein Inhalt |
204 | No Content | Kein Inhalt |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
application/json
\*/*
- 教师接口
GET /teacher/work_detail/{workId}
Typ | Name | Beschreibung | Typ |
---|---|---|---|
Path | workId verpflichtend |
作业ID | string |
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | < WorkDetailsModel > array |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
application/json;charset=UTF-8
- 教师接口
GET /teacher/works
HTTP Code | Beschreibung | Typ |
---|---|---|
200 | OK | < WorkModel > array |
401 | Unauthorized | Kein Inhalt |
403 | Forbidden | Kein Inhalt |
404 | Not Found | Kein Inhalt |
\*/*
application/json;charset=UTF-8
- 教师接口
Typ : object
群组
Name | Beschreibung | Typ |
---|---|---|
code verpflichtend |
邀请码 | string |
gmtCreate verpflichtend |
创建时间 | string (date-time) |
gmtModified verpflichtend |
更新时间 | string (date-time) |
groupName verpflichtend |
群组名 | string |
id verpflichtend |
群组ID | string |
teacherName verpflichtend |
教师名 | string |
teacherNumber verpflichtend |
教师序号 | string |
Rest 返回消息
Name | Beschreibung | Typ |
---|---|---|
code verpflichtend |
状态码 | integer (int32) |
data verpflichtend |
数据 | object |
msg verpflichtend |
消息 | string |
用于存储学生元数据的实体
Name | Beschreibung | Typ |
---|---|---|
clazzId optional |
班级 | string |
loginName optional |
登录名 | string |
name optional |
姓名 | string |
no verpflichtend |
学号 | string |
上传
Name | Beschreibung | Typ |
---|---|---|
extensionName verpflichtend |
扩展名 | string |
gmtCreate verpflichtend |
创建时间 | string (date-time) |
gmtModified verpflichtend |
更新时间 | string (date-time) |
mime verpflichtend |
文件类型 | string |
size verpflichtend |
文件大小(bytes) | integer (int64) |
studentId verpflichtend |
学生ID | string |
workId verpflichtend |
作业ID | string |
作业
Name | Beschreibung | Typ |
---|---|---|
enabled verpflichtend |
作业启用状态 | boolean |
fileNameFormat verpflichtend |
文件名规范 | string |
gmtCreate verpflichtend |
创建时间 | string (date-time) |
gmtModified verpflichtend |
更新时间 | string (date-time) |
groupId verpflichtend |
群组ID,该作业所属群 | string |
id verpflichtend |
作业ID,标识唯一作业 | string |
workName verpflichtend |
作业名 | string |
作业详情
Name | Beschreibung | Typ |
---|---|---|
groupName verpflichtend |
群组名 | string |
student verpflichtend |
学生信息 | Student |
up verpflichtend |
是否上传 | boolean |
upload verpflichtend |
上传信息 | Upload |
workName verpflichtend |
作业名 | string |
作业模型
Name | Beschreibung | Typ |
---|---|---|
enabled optional |
boolean | |
fileNameFormat verpflichtend |
文件名规范 | string |
gmtCreate verpflichtend |
创建时间 | string (date-time) |
gmtModified verpflichtend |
更新时间 | string (date-time) |
groupId verpflichtend |
群组ID,该作业所属群 | string |
groupName verpflichtend |
群组名 | string |
id verpflichtend |
作业ID,标识唯一作业 | string |
teacherName verpflichtend |
教师名 | string |
workName verpflichtend |
作业名 | string |