configuration.yaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. UiDictionaries:
  2. get:
  3. operationId: getUiDictionaries
  4. summary: 查询统一UI展示字典
  5. description: 返回启动时加载的只读展示标签;不提供配置路径或写操作。
  6. parameters:
  7. - $ref: '../components/parameters.yaml#/XRequestId'
  8. responses:
  9. '200':
  10. description: 完整UI展示字典
  11. headers:
  12. X-Request-Id:
  13. description: 与响应体requestId相同
  14. schema:
  15. type: string
  16. format: uuid
  17. content:
  18. application/json:
  19. schema:
  20. $ref: '../components/schemas.yaml#/UiDictionariesResponse'
  21. '401':
  22. $ref: '../components/responses.yaml#/AuthenticationError'
  23. '500':
  24. $ref: '../components/responses.yaml#/InternalError'
  25. LoginBackground:
  26. get:
  27. operationId: getLoginBackground
  28. summary: 查询登录界面自定义背景图
  29. description: >-
  30. 返回服务端运行目录下的 background.jpg 或 background.png(jpg优先);
  31. 运行目录不存在背景图文件时返回404,前端回退默认纯色背景。
  32. 接口公开(登录前无凭证可访问),允许浏览器缓存60秒。
  33. security: []
  34. parameters:
  35. - $ref: '../components/parameters.yaml#/XRequestId'
  36. responses:
  37. '200':
  38. description: 背景图片二进制
  39. headers:
  40. X-Request-Id:
  41. description: 与请求发送的X-Request-Id一致
  42. schema:
  43. type: string
  44. format: uuid
  45. content:
  46. image/jpeg:
  47. schema:
  48. type: string
  49. format: binary
  50. image/png:
  51. schema:
  52. type: string
  53. format: binary
  54. '404':
  55. description: 运行目录下不存在背景图文件
  56. content:
  57. application/json:
  58. schema:
  59. $ref: '../components/schemas.yaml#/ErrorResponse'
  60. '500':
  61. $ref: '../components/responses.yaml#/InternalError'