v2-interactive-interactive.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-interactive-interactive.yaml
  2. get:
  3. summary: 获取某个资源,某个用户的权限
  4. tags:
  5. - interactive
  6. operationId: get_api_v2_interactive_interactive_
  7. description: 实现:`InteractiveController@show`
  8. parameters:
  9. -
  10. name: interactive
  11. in: path
  12. required: true
  13. schema:
  14. type: string
  15. -
  16. name: res_type
  17. in: query
  18. schema:
  19. type: string
  20. enum:
  21. - article
  22. responses:
  23. 200:
  24. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  25. content:
  26. application/json:
  27. schema:
  28. type: object
  29. properties:
  30. ok:
  31. type: boolean
  32. message:
  33. type: string
  34. data:
  35. type: object
  36. 401:
  37. $ref: '../../main.yaml#/components/responses/Unauthorized'
  38. 422:
  39. $ref: '../../main.yaml#/components/responses/ValidationError'
  40. put:
  41. summary: '更新 interactive/{interactive}'
  42. tags:
  43. - interactive
  44. operationId: put_api_v2_interactive_interactive_
  45. description: 实现:`InteractiveController@update`
  46. parameters:
  47. -
  48. name: interactive
  49. in: path
  50. required: true
  51. schema:
  52. type: string
  53. responses:
  54. 200:
  55. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  56. content:
  57. application/json:
  58. schema:
  59. type: object
  60. properties:
  61. ok:
  62. type: boolean
  63. message:
  64. type: string
  65. data:
  66. type: object
  67. 401:
  68. $ref: '../../main.yaml#/components/responses/Unauthorized'
  69. 422:
  70. $ref: '../../main.yaml#/components/responses/ValidationError'
  71. patch:
  72. summary: '更新 interactive/{interactive}'
  73. tags:
  74. - interactive
  75. operationId: patch_api_v2_interactive_interactive_
  76. description: 实现:`InteractiveController@update`
  77. parameters:
  78. -
  79. name: interactive
  80. in: path
  81. required: true
  82. schema:
  83. type: string
  84. responses:
  85. 200:
  86. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  87. content:
  88. application/json:
  89. schema:
  90. type: object
  91. properties:
  92. ok:
  93. type: boolean
  94. message:
  95. type: string
  96. data:
  97. type: object
  98. 401:
  99. $ref: '../../main.yaml#/components/responses/Unauthorized'
  100. 422:
  101. $ref: '../../main.yaml#/components/responses/ValidationError'
  102. delete:
  103. summary: '删除 interactive/{interactive}'
  104. tags:
  105. - interactive
  106. operationId: delete_api_v2_interactive_interactive_
  107. description: 实现:`InteractiveController@destroy`
  108. parameters:
  109. -
  110. name: interactive
  111. in: path
  112. required: true
  113. schema:
  114. type: string
  115. responses:
  116. 200:
  117. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  118. content:
  119. application/json:
  120. schema:
  121. type: object
  122. properties:
  123. ok:
  124. type: boolean
  125. message:
  126. type: string
  127. data:
  128. type: object
  129. 401:
  130. $ref: '../../main.yaml#/components/responses/Unauthorized'
  131. 422:
  132. $ref: '../../main.yaml#/components/responses/ValidationError'