v2-group-group.yaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-group-group.yaml
  2. get:
  3. summary: '获取单个 group/{group}'
  4. tags:
  5. - group
  6. operationId: get_api_v2_group_group_
  7. description: |
  8. 已被 `GET /v3/groups/{group}` 取代。保留仅为 dashboard-v4 兼容,待 v4 下线后删除。
  9. parameters:
  10. -
  11. name: group
  12. in: path
  13. required: true
  14. schema:
  15. type: string
  16. responses:
  17. 200:
  18. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  19. content:
  20. application/json:
  21. schema:
  22. type: object
  23. properties:
  24. ok:
  25. type: boolean
  26. message:
  27. type: string
  28. data:
  29. type: object
  30. properties:
  31. uid:
  32. type: string
  33. name:
  34. type: string
  35. description:
  36. type: string
  37. owner:
  38. type: string
  39. studio:
  40. type: string
  41. updated_at:
  42. type: string
  43. created_at:
  44. type: string
  45. role:
  46. type: string
  47. 401:
  48. $ref: '../../main.yaml#/components/responses/Unauthorized'
  49. 422:
  50. $ref: '../../main.yaml#/components/responses/ValidationError'
  51. deprecated: true
  52. put:
  53. summary: '更新 group/{group}'
  54. tags:
  55. - group
  56. operationId: put_api_v2_group_group_
  57. description: |
  58. 已被 `PATCH /v3/groups/{group}`(局部更新,owner / manager 可改)取代。保留仅为 dashboard-v4 兼容,待 v4 下线后删除。
  59. parameters:
  60. -
  61. name: group
  62. in: path
  63. required: true
  64. schema:
  65. type: string
  66. requestBody:
  67. required: false
  68. content:
  69. application/json:
  70. schema:
  71. type: object
  72. properties:
  73. name:
  74. type: string
  75. description:
  76. type: string
  77. status:
  78. type: string
  79. responses:
  80. 200:
  81. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  82. content:
  83. application/json:
  84. schema:
  85. type: object
  86. properties:
  87. ok:
  88. type: boolean
  89. message:
  90. type: string
  91. data:
  92. type: object
  93. 401:
  94. $ref: '../../main.yaml#/components/responses/Unauthorized'
  95. 422:
  96. $ref: '../../main.yaml#/components/responses/ValidationError'
  97. deprecated: true
  98. patch:
  99. summary: '更新 group/{group}'
  100. tags:
  101. - group
  102. operationId: patch_api_v2_group_group_
  103. description: |
  104. 已被 `PATCH /v3/groups/{group}`(局部更新,owner / manager 可改)取代。保留仅为 dashboard-v4 兼容,待 v4 下线后删除。
  105. parameters:
  106. -
  107. name: group
  108. in: path
  109. required: true
  110. schema:
  111. type: string
  112. requestBody:
  113. required: false
  114. content:
  115. application/json:
  116. schema:
  117. type: object
  118. properties:
  119. name:
  120. type: string
  121. description:
  122. type: string
  123. status:
  124. type: string
  125. responses:
  126. 200:
  127. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  128. content:
  129. application/json:
  130. schema:
  131. type: object
  132. properties:
  133. ok:
  134. type: boolean
  135. message:
  136. type: string
  137. data:
  138. type: object
  139. 401:
  140. $ref: '../../main.yaml#/components/responses/Unauthorized'
  141. 422:
  142. $ref: '../../main.yaml#/components/responses/ValidationError'
  143. deprecated: true
  144. delete:
  145. summary: '删除 group/{group}'
  146. tags:
  147. - group
  148. operationId: delete_api_v2_group_group_
  149. description: |
  150. 已被 `DELETE /v3/groups/{group}` 取代(名下还有资源时 409)。保留仅为 dashboard-v4 兼容,待 v4 下线后删除。
  151. parameters:
  152. -
  153. name: group
  154. in: path
  155. required: true
  156. schema:
  157. type: string
  158. responses:
  159. 200:
  160. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  161. content:
  162. application/json:
  163. schema:
  164. type: object
  165. properties:
  166. ok:
  167. type: boolean
  168. message:
  169. type: string
  170. data:
  171. type: object
  172. 401:
  173. $ref: '../../main.yaml#/components/responses/Unauthorized'
  174. 422:
  175. $ref: '../../main.yaml#/components/responses/ValidationError'
  176. deprecated: true