v2-dict-preference-dict-preference.yaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-dict-preference-dict-preference.yaml
  2. get:
  3. summary: '获取单个 dict-preference/{dict_preference}'
  4. tags:
  5. - dict-preference
  6. operationId: get_api_v2_dict_preference_dict_preference_
  7. description: 实现:`DictPreferenceController@show`
  8. parameters:
  9. -
  10. name: dict_preference
  11. in: path
  12. required: true
  13. schema:
  14. type: string
  15. responses:
  16. 200:
  17. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  18. content:
  19. application/json:
  20. schema:
  21. type: object
  22. properties:
  23. ok:
  24. type: boolean
  25. message:
  26. type: string
  27. data:
  28. type: object
  29. 401:
  30. $ref: '../../main.yaml#/components/responses/Unauthorized'
  31. 422:
  32. $ref: '../../main.yaml#/components/responses/ValidationError'
  33. put:
  34. summary: '更新 dict-preference/{dict_preference}'
  35. tags:
  36. - dict-preference
  37. operationId: put_api_v2_dict_preference_dict_preference_
  38. description: 实现:`DictPreferenceController@update`
  39. parameters:
  40. -
  41. name: dict_preference
  42. in: path
  43. required: true
  44. schema:
  45. type: string
  46. responses:
  47. 200:
  48. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  49. content:
  50. application/json:
  51. schema:
  52. type: object
  53. properties:
  54. ok:
  55. type: boolean
  56. message:
  57. type: string
  58. data:
  59. type: object
  60. properties:
  61. id:
  62. type: integer
  63. word:
  64. type: string
  65. count:
  66. type: integer
  67. parent:
  68. type: string
  69. note:
  70. type: string
  71. factors:
  72. type: string
  73. confidence:
  74. type: string
  75. updated_at:
  76. type: string
  77. creator_id:
  78. type: integer
  79. editor:
  80. type: string
  81. 401:
  82. $ref: '../../main.yaml#/components/responses/Unauthorized'
  83. 422:
  84. $ref: '../../main.yaml#/components/responses/ValidationError'
  85. patch:
  86. summary: '更新 dict-preference/{dict_preference}'
  87. tags:
  88. - dict-preference
  89. operationId: patch_api_v2_dict_preference_dict_preference_
  90. description: 实现:`DictPreferenceController@update`
  91. parameters:
  92. -
  93. name: dict_preference
  94. in: path
  95. required: true
  96. schema:
  97. type: string
  98. responses:
  99. 200:
  100. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  101. content:
  102. application/json:
  103. schema:
  104. type: object
  105. properties:
  106. ok:
  107. type: boolean
  108. message:
  109. type: string
  110. data:
  111. type: object
  112. properties:
  113. id:
  114. type: integer
  115. word:
  116. type: string
  117. count:
  118. type: integer
  119. parent:
  120. type: string
  121. note:
  122. type: string
  123. factors:
  124. type: string
  125. confidence:
  126. type: string
  127. updated_at:
  128. type: string
  129. creator_id:
  130. type: integer
  131. editor:
  132. type: string
  133. 401:
  134. $ref: '../../main.yaml#/components/responses/Unauthorized'
  135. 422:
  136. $ref: '../../main.yaml#/components/responses/ValidationError'
  137. delete:
  138. summary: '删除 dict-preference/{dict_preference}'
  139. tags:
  140. - dict-preference
  141. operationId: delete_api_v2_dict_preference_dict_preference_
  142. description: 实现:`DictPreferenceController@destroy`
  143. parameters:
  144. -
  145. name: dict_preference
  146. in: path
  147. required: true
  148. schema:
  149. type: string
  150. responses:
  151. 200:
  152. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  153. content:
  154. application/json:
  155. schema:
  156. type: object
  157. properties:
  158. ok:
  159. type: boolean
  160. message:
  161. type: string
  162. data:
  163. type: object
  164. 401:
  165. $ref: '../../main.yaml#/components/responses/Unauthorized'
  166. 422:
  167. $ref: '../../main.yaml#/components/responses/ValidationError'