v2-channel-io.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-channel-io.yaml
  2. get:
  3. summary: '列出 channel-io'
  4. tags:
  5. - channel-io
  6. operationId: get_api_v2_channel_io
  7. description: 实现:`ChannelIOController@index`
  8. parameters:
  9. -
  10. name: view
  11. in: query
  12. schema:
  13. type: string
  14. enum:
  15. - public
  16. -
  17. name: updated_at
  18. in: query
  19. schema:
  20. type: string
  21. default: '2000-1-1'
  22. -
  23. name: offset
  24. in: query
  25. schema:
  26. type: string
  27. -
  28. name: limit
  29. in: query
  30. schema:
  31. type: string
  32. -
  33. name: search
  34. in: query
  35. description: 搜索关键字
  36. schema:
  37. type: string
  38. -
  39. name: order
  40. in: query
  41. description: 排序字段
  42. schema:
  43. type: string
  44. -
  45. name: dir
  46. in: query
  47. description: 排序方向
  48. schema:
  49. type: string
  50. enum:
  51. - desc
  52. - asc
  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. properties:
  68. rows:
  69. type: array
  70. items:
  71. type: object
  72. count:
  73. type: integer
  74. 401:
  75. $ref: '../../main.yaml#/components/responses/Unauthorized'
  76. 422:
  77. $ref: '../../main.yaml#/components/responses/ValidationError'
  78. post:
  79. summary: '新建 channel-io'
  80. tags:
  81. - channel-io
  82. operationId: post_api_v2_channel_io
  83. description: 实现:`ChannelIOController@store`
  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'