| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #%RAML 1.0
- post:
- displayName: 老师上传题目
- body:
- multipart/form-data:
- properties:
- question: QuestionDTO
- file:
- type: file
- description: 题目压缩包
- is: [response: { typeName: Question }]
- /teacher:
- /questionType:
- get:
- displayName: 老师获取所有题目类型
- is: [response: { typeName: 'QuestionType[]' }]
- /questions/type:
- get:
- displayName: 老师获取某题目类型的所有题目
- description: type为空则获取所有
- is: [pagable, response: { typeName: PageQuestion }]
- queryParameters:
- type: QuestionType
- /questions/assignmentType:
- get:
- displayName: 老师获取某作业类型的所有题目
- description: type为空则获取所有
- is: [pagable, response: { typeName: PageQuestion }]
- queryParameters:
- type: AssignmentType
- /keyword:
- get:
- displayName: 老师搜索题目
- queryParameters:
- keyword:
- type: string
- description: 搜索关键字
- type?:
- type: QuestionType
- description: 题目类型
- is: [response: { typeName: 'Question[]' }]
- /question/{questionId}:
- uriParameters:
- questionId:
- type: integer
- description: 题目id
- get:
- displayName: 老师获取单个题目信息
- is: [response: { typeName: Question }]
|