v3-group-invites-token.yaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-group-invites-token.yaml
  2. get:
  3. summary: 查看团队邀请
  4. tags:
  5. - group-invites
  6. operationId: get_api_v3_group_invites_token_
  7. description: |-
  8. 不登录也能看(私有团队也一样,链接本身就是凭证);登录了 `member_role` 给出
  9. 查看者在这个团队里现有的角色,还不是成员为 null。
  10. 实现:`V3\GroupInviteController@show`
  11. security:
  12. - { }
  13. -
  14. bearerAuth: []
  15. parameters:
  16. -
  17. name: token
  18. in: path
  19. required: true
  20. schema:
  21. type: string
  22. description: '邀请链接里的 token'
  23. responses:
  24. 200:
  25. description: 成功
  26. content:
  27. application/json:
  28. schema:
  29. type: object
  30. properties:
  31. data:
  32. type: object
  33. properties:
  34. group:
  35. type: object
  36. properties:
  37. id: { type: string }
  38. name: { type: string }
  39. description: { type: string, nullable: true }
  40. status: { type: integer }
  41. owner: { type: object, properties: { id: { type: string }, nickName: { type: string }, userName: { type: string }, realName: { type: string }, sn: { type: integer }, avatar: { type: string }, roles: { type: array, items: { type: string } } }, nullable: true }
  42. inviter:
  43. type: object
  44. properties:
  45. id: { type: string }
  46. nickName: { type: string }
  47. userName: { type: string }
  48. realName: { type: string }
  49. sn: { type: integer }
  50. avatar: { type: string, nullable: true }
  51. roles: { type: array, items: { type: string }, nullable: true }
  52. role:
  53. type: string
  54. expires_at:
  55. type: string
  56. member_role:
  57. type: string
  58. nullable: true
  59. 404:
  60. description: 链接无效、已过期,或签发人已不能邀请
  61. content:
  62. application/problem+json:
  63. schema:
  64. $ref: '../../main.yaml#/components/schemas/ProblemDetails'
  65. 422:
  66. $ref: '../../main.yaml#/components/responses/ProblemValidation'