v3-groups-group-shares.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-groups-group-shares.yaml
  2. get:
  3. summary: 列出团队文档
  4. tags:
  5. - groups
  6. operationId: get_api_v3_groups_group_shares
  7. description: |-
  8. 只有团队成员看得到。每条带资源类型、标题与拥有者,以及团队对它的权限(reader / editor)。
  9. 实现:`V3\GroupShareController@index`
  10. security:
  11. -
  12. bearerAuth: []
  13. parameters:
  14. -
  15. name: group
  16. in: path
  17. required: true
  18. schema:
  19. type: string
  20. description: '团队 uid'
  21. -
  22. name: per_page
  23. in: query
  24. schema:
  25. type: integer
  26. default: 20
  27. description: '每页数量,最大 200'
  28. -
  29. name: page
  30. in: query
  31. schema:
  32. type: integer
  33. default: 1
  34. description: 页码
  35. responses:
  36. 200:
  37. description: 成功
  38. content:
  39. application/json:
  40. schema:
  41. type: object
  42. properties:
  43. data:
  44. type: array
  45. items:
  46. type: object
  47. properties:
  48. id:
  49. type: string
  50. role:
  51. type: string
  52. resource:
  53. type: object
  54. properties: { type: { type: string }, id: { type: string }, title: { type: string, nullable: true }, owner_id: { type: string, nullable: true }, 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 } }
  55. created_at:
  56. type: string
  57. meta:
  58. $ref: '../../main.yaml#/components/schemas/PaginationMeta'
  59. 401:
  60. $ref: '../../main.yaml#/components/responses/ProblemUnauthorized'
  61. 403:
  62. description: 不是这个团队的成员
  63. content:
  64. application/problem+json:
  65. schema:
  66. $ref: '../../main.yaml#/components/schemas/ProblemDetails'
  67. 422:
  68. $ref: '../../main.yaml#/components/responses/ProblemValidation'