目录

Search

  1. 前言
  2. 业务实体服务简介
  3. EJB 业务实体服务调用
  4. REST 业务实体服务调用
  5. 适用于 Data Director 的 REST API
  6. SOAP 业务实体服务调用
  7. 交叉引用记录和 BVT 计算服务
  8. 支持企业关联服务
  9. 清理、分析和转换数据的外部调用
  10. 附录 , A: 使用 REST API 添加记录
  11. 附录 , B: 使用 REST API 上载文件
  12. 附录 , C: 使用 REST API 管理报告

业务实体服务指南

业务实体服务指南

获取变量

获取变量

获取变量 REST API 将返回 Data Director 的当前配色方案属性。
此 API 使用 GET 方法。
请求 URL
获取变量 URL 使用以下格式:
http://<host>:<port>/<context>/<path>
向获取变量 URL 发出以下 HTTP GET 请求:
GET http://<host>:<port>/cmx/ui/theme/variables
示例 API 请求
以下请求返回当前配色方案的属性。
GET http://localhost:8080/cmx/ui/theme/variables
示例 API 响应
成功检索配色方案属性后,API 会返回响应代码 200 OK。
"variables": { "menu_text_color": "black", "dropdown_menu_item_checked_hover_bg_color": "Gold", "button_default_selected_border_color": "blue", "dropdown_menu_item_checked_hover_text_color": "Coral", "button_success_text_color": "white", "login_form_text_color": "green", "menu_hover_text_color": "#07fc03", "dropdown_menu_item_checked_text_color": "LightSalmon", "button_danger_text_color": "black", "menu_hover_bg_color": "#00349D", "header_search_text_color": "#36270a", "button_default_border_color": "red", "dropdown_menu_item_text_color": "#daf97b", "button_danger_bg_color": "pink", "button_default_bg_color": "yellow", "menu_sel_text_color": "#26cfe0", "button_success_border_color": "olive", "dropdown_menu_text_color": "#945d29", "dropdown_menu_bg_color": "#a4c7f5", "primary_button_text_color": "white", "header_search_bg_color": "#a4c7f5", "dropdown_menu_item_checked_bg_color": "LightGoldenrodYellow", "button_default_selected_bg_color": "orange", "primary_button_bg_color": "green", "entity_view_label_font_wight": "bold", "primary_button_selected_bg_color": "pink", "primary_button_selected_border_color": "red", "header_text_color": "#36270a", "button_danger_selected_text_color": "green", "primary_button_border_color": "white", "menu_sel_bg_color": "#636260", "button_success_selected_border_color": "red", "login_form_background_color": "#fcd483", "dropdown_menu_item_hover_text_color": "OrangeRed", "header_background_color": "#c4922d", "button_success_selected_bg_color": "PaleVioletRed", "button_danger_border_color": "purple", "button_default_text_color": "red", "button_success_bg_color": "orange", "button_danger_selected_bg_color": "yellow", "button_danger_selected_border_color": "red", "primary_button_selected_text_color": "red", "workspace_bg": "#cadee0", "button_default_selected_text_color": "blue", "dropdown_menu_item_hover_bg_color": "RoyalBlue", "menu_background_color": "#cdc1bb", "button_success_selected_text_color": "black" } }
有关 Data Director 的配色方案属性的详细信息,请参阅默认配色方案