v3-studios-studio-terms-imports.yaml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v3-studios-studio-terms-imports.yaml
  2. post:
  3. summary: '向 studio 导入术语'
  4. tags:
  5. - studios
  6. operationId: post_api_v3_studios_studio_terms_imports
  7. description: |-
  8. 上传 xlsx。`channel_id` 列有值的行落在那个 channel(必须属于这个 studio、你能写),没有的是 studio 通用术语
  9. (要填 `language`;新建要团队 owner / manager,修改团队 editor 也行)。其余规则同向 channel 导入:
  10. 部分成功、word / tag 不能改、带 etag 列时校验。AI 模型不能导入。最多 5000 行。
  11. 实现:`V3\StudioTermImportController@__invoke`
  12. security:
  13. -
  14. bearerAuth: []
  15. parameters:
  16. -
  17. name: studio
  18. in: path
  19. required: true
  20. schema:
  21. type: string
  22. description: '用户或团队的 uuid'
  23. requestBody:
  24. required: true
  25. content:
  26. multipart/form-data:
  27. schema:
  28. type: object
  29. properties:
  30. file:
  31. type: string
  32. format: binary
  33. description: 'xlsx 表格,不超过 5MB'
  34. required:
  35. - file
  36. responses:
  37. 200:
  38. description: 成功
  39. content:
  40. application/json:
  41. schema:
  42. type: object
  43. properties:
  44. data:
  45. type: object
  46. properties:
  47. created:
  48. type: integer
  49. updated:
  50. type: integer
  51. unchanged:
  52. type: integer
  53. reindexed:
  54. type: boolean
  55. errors:
  56. type: array
  57. items:
  58. type: object
  59. properties: { row: { type: integer }, message: { type: string } }
  60. 401:
  61. $ref: '../../main.yaml#/components/responses/ProblemUnauthorized'
  62. 403:
  63. description: 不是本人,也不是团队成员
  64. content:
  65. application/problem+json:
  66. schema:
  67. $ref: '../../main.yaml#/components/schemas/ProblemDetails'
  68. 422:
  69. $ref: '../../main.yaml#/components/responses/ProblemValidation'