group.raml 712 B

123456789101112131415161718192021222324252627282930313233
  1. get:
  2. displayName: 学生查看自己的小组
  3. queryParameters:
  4. courseId:
  5. description: 课程id
  6. type: integer
  7. is: [response: { typeName: 'Group[]' }]
  8. post:
  9. displayName: 学生创建小组
  10. body:
  11. application/json:
  12. type: GroupDTO
  13. is: [response: { typeName: Group }]
  14. put:
  15. displayName: 学生通过选组码加入小组
  16. body:
  17. application/json:
  18. type: object
  19. properties:
  20. code:
  21. type: string
  22. description: 选组码
  23. is: [response: { typeName: Group }]
  24. /{groupId}:
  25. uriParameters:
  26. groupId:
  27. description: 小组id
  28. type: integer
  29. get:
  30. displayName: 老师获取小组信息
  31. is: [response: { typeName: Group }]