v3-channels-batch-progress.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-channels-batch-progress.yaml
  2. post:
  3. summary: '查一批句子在各 channel 的完成度'
  4. tags:
  5. - channels
  6. operationId: post_api_v3_channels_batch_progress
  7. description: |-
  8. 列出这些句子上有译文且看得见的 channel,加上我能写的 channel(没译文也列)。
  9. 给了 `studio` 只列该 studio 名下的。不登录只看得到公开的。
  10. 实现:`V3\ChannelBatchProgressController@__invoke`
  11. security:
  12. - { }
  13. -
  14. bearerAuth: []
  15. requestBody:
  16. required: true
  17. content:
  18. application/json:
  19. schema:
  20. type: object
  21. properties:
  22. sentences:
  23. type: array
  24. description: '句子 id 列表,`book-para-wordStart-wordEnd`,最多 2000 个'
  25. studio:
  26. type: string
  27. description: '只看这个 studio(用户或团队 uuid)名下的'
  28. required:
  29. - sentences
  30. responses:
  31. 200:
  32. description: 成功
  33. content:
  34. application/json:
  35. schema:
  36. type: object
  37. properties:
  38. data:
  39. type: array
  40. items:
  41. type: object
  42. properties:
  43. id:
  44. type: string
  45. name:
  46. type: string
  47. summary:
  48. type: string
  49. nullable: true
  50. type:
  51. type: string
  52. lang:
  53. type: string
  54. status:
  55. type: integer
  56. is_system:
  57. type: boolean
  58. source_type:
  59. type: string
  60. source_id:
  61. type: string
  62. nullable: true
  63. owner:
  64. type: object
  65. properties: { kind: { type: string }, id: { type: string }, nickName: { type: string }, realName: { type: string }, avatar: { type: string, nullable: true } }
  66. abilities:
  67. type: object
  68. properties: { read: { type: boolean }, write: { type: boolean }, update: { type: boolean }, delete: { type: boolean } }
  69. final:
  70. type: array
  71. items: { type: string }
  72. nullable: true
  73. content_created_at:
  74. type: string
  75. nullable: true
  76. content_updated_at:
  77. type: string
  78. nullable: true
  79. created_at:
  80. type: string
  81. updated_at:
  82. type: string
  83. meta:
  84. $ref: '../../main.yaml#/components/schemas/PaginationMeta'
  85. 403:
  86. description: '给了 studio,但不能查看它'
  87. content:
  88. application/problem+json:
  89. schema:
  90. $ref: '../../main.yaml#/components/schemas/ProblemDetails'
  91. 422:
  92. $ref: '../../main.yaml#/components/responses/ProblemValidation'