|
@@ -11,4 +11,55 @@
|
|
|
application/json:
|
|
application/json:
|
|
|
type: CodeWorkDTO
|
|
type: CodeWorkDTO
|
|
|
is: [response: { typeName: CodeWork }]
|
|
is: [response: { typeName: CodeWork }]
|
|
|
-/code: !include codework/codework.raml
|
|
|
|
|
|
|
+/code: !include codework/codework.raml
|
|
|
|
|
+
|
|
|
|
|
+/teacher:
|
|
|
|
|
+ /course/{courseId}/code:
|
|
|
|
|
+ uriParameters:
|
|
|
|
|
+ courseId:
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ description: 课程id
|
|
|
|
|
+ get:
|
|
|
|
|
+ displayName: 老师获取代码作业列表
|
|
|
|
|
+ is: [response: { typeName: 'CodeWork[]' }]
|
|
|
|
|
+ /code/{codeId}:
|
|
|
|
|
+ uriParameters:
|
|
|
|
|
+ codeId:
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ description: 代码作业id
|
|
|
|
|
+ get:
|
|
|
|
|
+ displayName: 老师获取单个代码作业信息
|
|
|
|
|
+ is: [response: { typeName: CodeWork }]
|
|
|
|
|
+ /submitted/procedure:
|
|
|
|
|
+ get:
|
|
|
|
|
+ displayName: 老师获取代码作业的提交过程记录
|
|
|
|
|
+ is: [response: { typeName: 'CodeWorkProcedure[]' }]
|
|
|
|
|
+ /unsubmitted/groups:
|
|
|
|
|
+ get:
|
|
|
|
|
+ displayName: 老师获取代码作业的未提交的小组列表
|
|
|
|
|
+ is: [response: { typeName: 'Group[]' }]
|
|
|
|
|
+ /result:
|
|
|
|
|
+ get:
|
|
|
|
|
+ displayName: 老师获取代码作业所有组的测试情况
|
|
|
|
|
+ is: [response: { typeName: 'CodeWorkResult[]' }]
|
|
|
|
|
+/student:
|
|
|
|
|
+ /course/{courseId}/code:
|
|
|
|
|
+ uriParameters:
|
|
|
|
|
+ courseId:
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ description: 课程id
|
|
|
|
|
+ get:
|
|
|
|
|
+ displayName: 学生获取代码作业列表
|
|
|
|
|
+ is: [response: { typeName: 'CodeWork[]' }]
|
|
|
|
|
+ /code/{codeId}:
|
|
|
|
|
+ uriParameters:
|
|
|
|
|
+ codeId:
|
|
|
|
|
+ type: integer
|
|
|
|
|
+ description: 代码作业id
|
|
|
|
|
+ get:
|
|
|
|
|
+ displayName: 学生获取单个代码作业信息
|
|
|
|
|
+ is: [response: { typeName: CodeWork }]
|
|
|
|
|
+ /result:
|
|
|
|
|
+ displayName: 学生获取自己小组的测试情况
|
|
|
|
|
+ is: [response: { typeName: CodeWorkResult }]
|
|
|
|
|
+
|