v3-discussions-summary.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-discussions-summary.yaml
  2. get:
  3. summary: 话题概况
  4. tags:
  5. - discussions
  6. operationId: get_api_v3_discussions_summary
  7. description: |-
  8. 各状态的话题数(只数没删除的、当前用户看得见的),以及当前用户能在这个对象上
  9. 发起哪些类型的话题(未登录为空数组)。
  10. 实现:`V3\DiscussionSummaryController@__invoke`
  11. security:
  12. - { }
  13. -
  14. bearerAuth: []
  15. parameters:
  16. -
  17. name: target_type
  18. in: query
  19. schema:
  20. type: string
  21. enum:
  22. - sentence
  23. - wbw
  24. - article
  25. - term
  26. - task
  27. description: 挂靠对象的类型
  28. required: true
  29. -
  30. name: target_id
  31. in: query
  32. schema:
  33. type: string
  34. description: '挂靠对象的 uuid'
  35. required: true
  36. -
  37. name: type
  38. in: query
  39. schema:
  40. type: string
  41. enum:
  42. - discussion
  43. - qa
  44. - help
  45. - issue
  46. - glossary
  47. - note
  48. - commentary
  49. - assessment
  50. description: 只数这种类型,不传则只数评论线程
  51. responses:
  52. 200:
  53. description: 成功
  54. content:
  55. application/json:
  56. schema:
  57. type: object
  58. properties:
  59. data:
  60. type: object
  61. properties:
  62. status_counts:
  63. type: object
  64. properties:
  65. active: { type: integer }
  66. close: { type: integer }
  67. creatable_types:
  68. type: array
  69. items:
  70. type: string
  71. 422:
  72. $ref: '../../main.yaml#/components/responses/ProblemValidation'