v2-channel-progress.yaml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-channel-progress.yaml
  2. post:
  3. summary: 获取章节的进度
  4. tags:
  5. - channel-progress
  6. operationId: post_api_v2_channel_progress
  7. description: 实现:`ChannelController@progress`
  8. requestBody:
  9. required: false
  10. content:
  11. application/json:
  12. schema:
  13. type: object
  14. properties:
  15. sentence:
  16. type: string
  17. owner:
  18. type: string
  19. responses:
  20. 200:
  21. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  22. content:
  23. application/json:
  24. schema:
  25. type: object
  26. properties:
  27. ok:
  28. type: boolean
  29. message:
  30. type: string
  31. data:
  32. type: object
  33. 401:
  34. $ref: '../../main.yaml#/components/responses/Unauthorized'
  35. 422:
  36. $ref: '../../main.yaml#/components/responses/ValidationError'