v2-relation-export.yaml 946 B

1234567891011121314151617181920212223242526272829
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-relation-export.yaml
  2. get:
  3. summary: 'Export all relations as an XLSX file download.'
  4. tags:
  5. - relation-export
  6. operationId: get_api_v2_relation_export
  7. description: |-
  8. Streams the spreadsheet directly to the browser via php://output.
  9. Columns: id, name, from, to, match, category.
  10. 实现:`RelationController@export`
  11. responses:
  12. 200:
  13. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  14. content:
  15. application/json:
  16. schema:
  17. type: object
  18. properties:
  19. ok:
  20. type: boolean
  21. message:
  22. type: string
  23. data:
  24. type: object
  25. 401:
  26. $ref: '../../main.yaml#/components/responses/Unauthorized'
  27. 422:
  28. $ref: '../../main.yaml#/components/responses/ValidationError'