Skip to main content

数据服务DataAPI 6.1.2

Improved

【5.3】增加trace id

【5.3】支持sqlparser能直接解析limit后的自定义参数名称后的运算符

【5.3】支持API路径前缀自定义

此部分实现主要通过配置项变更和代码逻辑兼容,配置项变更如下(同名配置项服务之间配置的值必须保证完全一样):

api-web变更:

api-web变更:
(废弃) gateway.url
(新增) gateway.url.host = http://gateway-default-api530-api.base53.devops.dtstack.cn
(新增) gateway.url.custom.prefix = /custom/data
(新增) gateway.url.custom.open = true

gateway变更:
(新增) gateway.url.custom.open = true
(新增) gateway.url.custom.prefix = /custom/data

nginx变更/conf/conf.d/apigw.conf:
(localtion后面的配置需要基础运维进行提取变量,支持通过em进行配置项的变更,变更值与api配置文件中gateway.url.custom.prefix保持一致)
#location /api/gateway {
-> 修改成:
#location /custom/data {
proxy_max_temp_file_size 0k;
fastcgi_buffers 32 8k;
proxy_http_version 1.1;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://real-rdos-api-gw;

if ($request_method = 'OPTIONS') {
return 204;
}
}

配置项说明:

  • gateway.url.custom.open :是否使用自定义url前缀,默认false
  • gateway.url.host :请求url,组成为http(https)://hostname:port
  • gateway.url.custom.prefix :自定义前缀,以斜杠开头,支持多级,默认/api/gateway

不支持配置:

以下路径前缀不支持配置:/remote/dp,, /api/science/model.

原因:与gateway/api-web/nginx的路径冲突.

【6.0】数据源支持oushudb创建API

【6.0】API支持批量提交,发布,撤回

支持API可以批量提交,批量发布,批量撤回等操作,提高API的操作效率.

image-20230815164025042

【5.3】服务编排中,未执行的节点不再展示状态

对于执行过的节点,展示成功或者失败的状态,未执行过的,状态不做变更.

【6.0】我的API从项目层迁移至租户层

image-20230815170038562

【6.0】支持API做熔断和降级的策略创建

支持创建熔断降级的策略:

image-20230815170829885

创建后可以在单个API进行选择应用:

image-20230815171228019