course.raml 915 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #%RAML 1.0
  2. put:
  3. displayName: 教师更新课程信息
  4. is: [response: { typeName: Course }]
  5. body:
  6. application/json:
  7. type: CourseDTOWithId
  8. /student:
  9. get:
  10. displayName: 学生获取所选课程列表信息
  11. is: [response: { typeName: 'Course[]' }]
  12. /teacher:
  13. get:
  14. displayName: 教师获取所创建列表信息
  15. is: [response: { typeName: 'Course[]' }]
  16. post:
  17. displayName: 教师创建课程
  18. body:
  19. application/json:
  20. type: CourseDTO
  21. is: [response: { typeName: Course }]
  22. /register:
  23. post:
  24. displayName: 学生选课
  25. body:
  26. application/json:
  27. type: object
  28. properties:
  29. code: string
  30. is: [response: { typeName: Course }]
  31. /course/{courseId}:
  32. uriParameters:
  33. courseId:
  34. description: 课程id
  35. type: integer
  36. get:
  37. displayName: 学生获取所选课程的信息
  38. is: [response: { typeName: Course }]