v3-channels-editable.yaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-channels-editable.yaml
  2. get:
  3. summary: '列出我能写的 channel'
  4. tags:
  5. - channels
  6. operationId: get_api_v3_channels_editable
  7. description: 实现:`V3\EditableChannelController@__invoke`
  8. security:
  9. -
  10. bearerAuth: []
  11. parameters:
  12. -
  13. name: per_page
  14. in: query
  15. schema:
  16. type: integer
  17. default: 20
  18. description: '每页数量,最大 200'
  19. -
  20. name: search
  21. in: query
  22. schema:
  23. type: string
  24. description: 按名字模糊匹配
  25. -
  26. name: type
  27. in: query
  28. schema:
  29. type: string
  30. enum:
  31. - translation
  32. - nissaya
  33. - original
  34. - wbw
  35. - commentary
  36. - similar
  37. description: 'channel 类型'
  38. -
  39. name: lang
  40. in: query
  41. schema:
  42. type: string
  43. description: 语言
  44. -
  45. name: book
  46. in: query
  47. schema:
  48. type: integer
  49. description: '章节所在的书(与 para 同时给)'
  50. -
  51. name: para
  52. in: query
  53. schema:
  54. type: integer
  55. description: '章节起始段(与 book 同时给)'
  56. -
  57. name: order
  58. in: query
  59. schema:
  60. type: string
  61. enum:
  62. - updated_at
  63. - created_at
  64. - name
  65. - progress
  66. default: updated_at
  67. description: 排序字段
  68. -
  69. name: dir
  70. in: query
  71. schema:
  72. type: string
  73. enum:
  74. - asc
  75. - desc
  76. default: desc
  77. description: 排序方向
  78. -
  79. name: page
  80. in: query
  81. schema:
  82. type: integer
  83. default: 1
  84. description: 页码
  85. responses:
  86. 200:
  87. description: 成功
  88. content:
  89. application/json:
  90. schema:
  91. type: object
  92. properties:
  93. data:
  94. type: array
  95. items:
  96. type: object
  97. properties:
  98. id:
  99. type: string
  100. name:
  101. type: string
  102. summary:
  103. type: string
  104. nullable: true
  105. type:
  106. type: string
  107. lang:
  108. type: string
  109. status:
  110. type: integer
  111. is_system:
  112. type: boolean
  113. source_type:
  114. type: string
  115. source_id:
  116. type: string
  117. nullable: true
  118. owner:
  119. type: object
  120. properties: { kind: { type: string }, id: { type: string }, nickName: { type: string }, realName: { type: string }, avatar: { type: string, nullable: true } }
  121. abilities:
  122. type: object
  123. properties: { read: { type: boolean }, write: { type: boolean }, update: { type: boolean }, delete: { type: boolean } }
  124. progress:
  125. type: number
  126. nullable: true
  127. description: 仅在部分查询口径下返回。
  128. created_at:
  129. type: string
  130. updated_at:
  131. type: string
  132. meta:
  133. $ref: '../../main.yaml#/components/schemas/PaginationMeta'
  134. 401:
  135. $ref: '../../main.yaml#/components/responses/ProblemUnauthorized'
  136. 422:
  137. $ref: '../../main.yaml#/components/responses/ProblemValidation'