v3-tipitaka-channels.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-tipitaka-channels.yaml
  2. get:
  3. summary: '列出有译文的公开 channel'
  4. tags:
  5. - tipitaka-channels
  6. operationId: get_api_v3_tipitaka_channels
  7. description: |-
  8. 只列公开的、有完成度过门槛的章节的 channel,按章节数降序,每条带 `chapter_count`。
  9. 实现:`V3\TipitakaChannelController@__invoke`
  10. security:
  11. - { }
  12. -
  13. bearerAuth: []
  14. parameters:
  15. -
  16. name: per_page
  17. in: query
  18. schema:
  19. type: integer
  20. default: 20
  21. description: '每页数量,最大 200'
  22. -
  23. name: type
  24. in: query
  25. schema:
  26. type: string
  27. enum:
  28. - translation
  29. - nissaya
  30. - original
  31. - wbw
  32. - commentary
  33. - similar
  34. description: 'channel 类型'
  35. -
  36. name: lang
  37. in: query
  38. schema:
  39. type: string
  40. description: '译文语族(progress_chapters.lang,zh 涵盖简繁)'
  41. example: zh
  42. -
  43. name: min_progress
  44. in: query
  45. schema:
  46. type: number
  47. default: 0.8
  48. description: '章节完成度门槛 0–1'
  49. -
  50. name: page
  51. in: query
  52. schema:
  53. type: integer
  54. default: 1
  55. description: 页码
  56. responses:
  57. 200:
  58. description: 成功
  59. content:
  60. application/json:
  61. schema:
  62. type: object
  63. properties:
  64. data:
  65. type: array
  66. items:
  67. type: object
  68. properties:
  69. id:
  70. type: string
  71. name:
  72. type: string
  73. summary:
  74. type: string
  75. nullable: true
  76. type:
  77. type: string
  78. lang:
  79. type: string
  80. status:
  81. type: integer
  82. is_system:
  83. type: boolean
  84. source_type:
  85. type: string
  86. source_id:
  87. type: string
  88. nullable: true
  89. owner:
  90. type: object
  91. properties: { kind: { type: string }, id: { type: string }, nickName: { type: string }, realName: { type: string }, avatar: { type: string, nullable: true } }
  92. abilities:
  93. type: object
  94. properties: { read: { type: boolean }, write: { type: boolean }, update: { type: boolean }, delete: { type: boolean } }
  95. chapter_count:
  96. type: integer
  97. created_at:
  98. type: string
  99. updated_at:
  100. type: string
  101. meta:
  102. $ref: '../../main.yaml#/components/schemas/PaginationMeta'
  103. 422:
  104. $ref: '../../main.yaml#/components/responses/ProblemValidation'