v2-group.yaml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-group.yaml
  2. get:
  3. summary: '列出 group'
  4. tags:
  5. - group
  6. operationId: get_api_v2_group
  7. description: |
  8. `view=all` 已被 `GET /v3/groups?search=`(只搜公开团队)取代;
  9. `view=studio`(含 `view2`)已被 `GET /v3/me/groups?owned=true|false` 取代。
  10. 保留仅为 dashboard-v4 兼容,待 v4 下线后删除。
  11. parameters:
  12. -
  13. name: view
  14. in: query
  15. schema:
  16. type: string
  17. enum:
  18. - studio
  19. - all
  20. -
  21. name: name
  22. in: query
  23. schema:
  24. type: string
  25. -
  26. name: view2
  27. in: query
  28. schema:
  29. type: string
  30. default: my
  31. -
  32. name: search
  33. in: query
  34. schema:
  35. type: string
  36. -
  37. name: order
  38. in: query
  39. schema:
  40. type: string
  41. default: updated_at
  42. -
  43. name: dir
  44. in: query
  45. schema:
  46. type: string
  47. default: desc
  48. -
  49. name: offset
  50. in: query
  51. schema:
  52. type: string
  53. -
  54. name: limit
  55. in: query
  56. schema:
  57. type: string
  58. responses:
  59. 200:
  60. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  61. content:
  62. application/json:
  63. schema:
  64. type: object
  65. properties:
  66. ok:
  67. type: boolean
  68. message:
  69. type: string
  70. data:
  71. type: object
  72. properties:
  73. rows:
  74. type: array
  75. items:
  76. type: object
  77. properties: { uid: { type: string }, name: { type: string }, description: { type: string }, owner: { type: string }, studio: { type: string }, updated_at: { type: string }, created_at: { type: string }, role: { type: string } }
  78. count:
  79. type: integer
  80. 401:
  81. $ref: '../../main.yaml#/components/responses/Unauthorized'
  82. 422:
  83. $ref: '../../main.yaml#/components/responses/ValidationError'
  84. deprecated: true
  85. post:
  86. summary: '新建 group'
  87. tags:
  88. - group
  89. operationId: post_api_v2_group
  90. description: |
  91. 已被 `POST /v3/groups` 取代。保留仅为 dashboard-v4 兼容,待 v4 下线后删除。
  92. requestBody:
  93. required: false
  94. content:
  95. application/json:
  96. schema:
  97. type: object
  98. properties:
  99. studio_name:
  100. type: string
  101. name:
  102. type: string
  103. responses:
  104. 200:
  105. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  106. content:
  107. application/json:
  108. schema:
  109. type: object
  110. properties:
  111. ok:
  112. type: boolean
  113. message:
  114. type: string
  115. data:
  116. type: object
  117. 401:
  118. $ref: '../../main.yaml#/components/responses/Unauthorized'
  119. 422:
  120. $ref: '../../main.yaml#/components/responses/ValidationError'
  121. deprecated: true