question.raml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #%RAML 1.0
  2. post:
  3. displayName: 老师上传题目
  4. body:
  5. multipart/form-data:
  6. properties:
  7. question: QuestionDTO
  8. file:
  9. type: file
  10. description: 题目压缩包
  11. is: [response: { typeName: Question }]
  12. /teacher:
  13. /questionType:
  14. get:
  15. displayName: 老师获取所有题目类型
  16. is: [response: { typeName: 'QuestionType[]' }]
  17. /questions/type:
  18. get:
  19. displayName: 老师获取某题目类型的所有题目
  20. description: type为空则获取所有
  21. is: [pagable: { typeName: Question }]
  22. queryParameters:
  23. type: QuestionType
  24. /questions/assignmentType:
  25. get:
  26. displayName: 老师获取某作业类型的所有题目
  27. description: type为空则获取所有
  28. is: [pagable: { typeName: Question }]
  29. queryParameters:
  30. type: AssignmentType
  31. /keyword:
  32. get:
  33. displayName: 老师搜索题目
  34. queryParameters:
  35. keyword:
  36. type: string
  37. description: 搜索关键字
  38. type?:
  39. type: QuestionType
  40. description: 题目类型
  41. is: [response: { typeName: 'Question[]' }]
  42. /question/{questionId}:
  43. uriParameters:
  44. questionId:
  45. type: integer
  46. description: 题目id
  47. get:
  48. displayName: 老师获取单个题目信息
  49. is: [response: { typeName: Question }]