v2-terms-export.yaml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-terms-export.yaml
  2. get:
  3. summary: '列出 terms-export'
  4. tags:
  5. - terms-export
  6. operationId: get_api_v2_terms_export
  7. description: |
  8. 已被取代:列表接口带请求头 `Accept: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` 直接返回 xlsx——
  9. `view=channel` → `GET /v3/channels/{channel}/terms`,`view=studio` → `GET /v3/studios/{studio}/terms`(权限同列表)。
  10. 不再先存 Redis、再凭 uuid 下载。保留仅为 dashboard-v4 兼容,待 v4 下线后删除。
  11. parameters:
  12. -
  13. name: view
  14. in: query
  15. schema:
  16. type: string
  17. enum:
  18. - channel
  19. - studio
  20. -
  21. name: id
  22. in: query
  23. schema:
  24. type: string
  25. -
  26. name: name
  27. in: query
  28. schema:
  29. type: string
  30. -
  31. name: search
  32. in: query
  33. description: 搜索关键字
  34. schema:
  35. type: string
  36. -
  37. name: order
  38. in: query
  39. description: 排序字段
  40. schema:
  41. type: string
  42. -
  43. name: dir
  44. in: query
  45. description: 排序方向
  46. schema:
  47. type: string
  48. enum:
  49. - desc
  50. - asc
  51. -
  52. name: limit
  53. in: query
  54. description: 每页记录数
  55. schema:
  56. type: number
  57. -
  58. name: offset
  59. in: query
  60. description: 从第几条记录开始提取
  61. schema:
  62. type: number
  63. responses:
  64. 200:
  65. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  66. content:
  67. application/json:
  68. schema:
  69. type: object
  70. properties:
  71. ok:
  72. type: boolean
  73. message:
  74. type: string
  75. data:
  76. type: object
  77. properties:
  78. rows:
  79. type: array
  80. items:
  81. type: object
  82. count:
  83. type: integer
  84. 401:
  85. $ref: '../../main.yaml#/components/responses/Unauthorized'
  86. 422:
  87. $ref: '../../main.yaml#/components/responses/ValidationError'
  88. deprecated: true
  89. post:
  90. summary: '新建 terms-export'
  91. tags:
  92. - terms-export
  93. operationId: post_api_v2_terms_export
  94. description: 实现:`TermExportController@store`
  95. responses:
  96. 200:
  97. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  98. content:
  99. application/json:
  100. schema:
  101. type: object
  102. properties:
  103. ok:
  104. type: boolean
  105. message:
  106. type: string
  107. data:
  108. type: object
  109. 401:
  110. $ref: '../../main.yaml#/components/responses/Unauthorized'
  111. 422:
  112. $ref: '../../main.yaml#/components/responses/ValidationError'