当前位置:网站首页>低代码平台中的数据连接方式(下)
低代码平台中的数据连接方式(下)
2022-07-07 12:33:00 【InfoQ】
1. 前文回顾
2. API 编排
- 在 “ API 中心” 的列表页面创建一个 “多接口聚合” API ,即 API 编排。
- 点击 “多接口聚合设计” 进入 API 编排设计界面,利用可视化编辑器进行 API 节点编排。
- 在页面中通过点选的方式为组件配置使用 API 中心的 API 编排。
2.1 创建一个 API 编排

2.2 在可视化编辑器中进行 API 节点编排

- 通过给定的 AKSK 换取临时 Token 。在图 3 的 “获取 access_token ” 节点中配置了三个 “ query 转换” 字段,其中 “ grant_type ” 字段是接口规定的固定常量,而 client_id 和 client_secret 是接口提供方分配给调用方的固定账号-密码。基于这样的配置,爱速搭的 API 编排运行引擎会将这三个参数以 query 参数的形式附在请求 URL 上向接口服务发送请求,并将返回结果存储在指定的 “存入变量” accessToken 中,在后续的节点中可以通过 accessToken.xxx 的形式来获取到这一步返回的值。

- 将上一步获取到的 access_token 附在 url 参数后作为下一步接口请求的鉴权凭据。在图 4 中分别配置了 “提交参数转换” 和 “ query 转换”,提交参数指的是请求 body 的内容,如图中的 image 字段,其值为 {{ input.image }} ,表示从前端输入中取 “ image ” 字段,而在 “ query 转换” 中配置了 access_token 字段的值为 {{accessToken.access_token}}, 表示从上一步缓存的中间变量 accessToken 中取字段 access_token,并将其附在 url 参数上。 此处需要注意的是右上角 “存入变量” 输入框配置的 output.data 字段,在爱速搭的 API 编排中,output 会被作为最终返回整个 API 编排返回的 response ,这里配置了 “存入变量” 为 output.data , 那么最终数据返回的时候,其格式会是{data: {...}, ...},其中 data 字段的值就是该接口返回的数据。

2.3 在页面中使用 API 编排




3. FaaS

4. 数据库直连方案
4.1 数据源接入能力
4.1.1 对接外部数据源


4.1.2 创建内置数据源


4.2 建模能力
4.2.1 可视化模型编辑器

4.2.2 同步模式
4.2.2.1 不同步模式
4.2.2.2 自动同步模式和手动同步模式
- 在数据模型中新增一个字段并保存,如图 15 :

- 用客户端连接到数据库,可以看到数据表中多了一个字段,如图 16 :

5. 在低代码平台搭建的业务页面中进行数据访问
5.1 通过专用的“模型组件”来连接数据模型
5.1.1 模型表单
- 在数据模型管理界面建立一个数据模型(对应一张数据库表),字段如图 17 所示 :

- 在页面编辑器的 “平台” 组件中,我们可以向页面中拖拽一个 “模型表单” 组件并将其和上一步新增的数据模型点选绑定,如图 18 :

- 点击“确认”后,模型表单组件会根据数据模型的字段类型自动生成响应的填写表单项,如此处模型中“物资编号”字段是单行文本,而“备注”字段是多行文本,模型表单组件内生成了一个单行文本框和一个多行文本框,如图 19 :

- 在页面填写一份数据,提交保存,如图 20 :

- 在 “数据管理” 处可以看到刚刚提交的数据,如图 21 :

5.1.2 模型列表

5.2 通过 API 编排节点访问数据模型


6. 总结
边栏推荐
- Vmware 与主机之间传输文件
- 常用數字信號編碼之反向不歸零碼碼、曼徹斯特編碼、差分曼徹斯特編碼
- 交换机和路由器的异同
- 用例图
- Dry goods | summarize the linkage use of those vulnerability tools
- 搜索框效果的实现【每日一题】
- 通过 iValueConverter 给datagrid 的背景颜色 动态赋值
- 3D Detection: 3D Box和点云 快速可视化
- Is the spare money in your hand better to fry stocks or buy financial products?
- Laravel5 call to undefined function openssl cipher iv length() 报错 PHP7开启OpenSSL扩展失败
猜你喜欢
Equipment failure prediction machine failure early warning mechanical equipment vibration monitoring machine failure early warning CNC vibration wireless monitoring equipment abnormal early warning
常用數字信號編碼之反向不歸零碼碼、曼徹斯特編碼、差分曼徹斯特編碼
The longest ascending subsequence model acwing 1014 Mountaineering
Mathématiques avancées - - chapitre 8 différenciation des fonctions multivariables 1
常用数字信号编码之反向不归零码码、曼彻斯特编码、差分曼彻斯特编码
Vscode configuration uses pylint syntax checker
Advanced Mathematics - Chapter 8 differential calculus of multivariate functions 1
docker部署oracle
Best practice | using Tencent cloud AI willingness to audit as the escort of telephone compliance
Flask session forged hctf admin
随机推荐
Laravel form builder uses
Csma/cd carrier monitoring multipoint access / collision detection protocol
常用数字信号编码之反向不归零码码、曼彻斯特编码、差分曼彻斯特编码
Leetcode——344. 反转字符串/541. 反转字符串 II/151. 颠倒字符串中的单词/剑指 Offer 58 - II. 左旋转字符串
Excuse me, when using Flink SQL sink data to Kafka, the execution is successful, but there is no number in Kafka
Excuse me, I have three partitions in Kafka, and the flinksql task has written the join operation. How can I give the join operation alone
UML 顺序图(时序图)
设备故障预测机床故障提前预警机械设备振动监测机床故障预警CNC震动无线监控设备异常提前预警
Parsing of XML files
bashrc与profile
The delivery efficiency is increased by 52 times, and the operation efficiency is increased by 10 times. See the compilation of practical cases of financial cloud native technology (with download)
一个简单LEGv8处理器的Verilog实现【四】【单周期实现基础知识及模块设计讲解】
参数关键字Final,Flags,Internal,映射关键字Internal
手把手教会:XML建模
AutoCAD - how to input angle dimensions and CAD diameter symbols greater than 180 degrees?
c#通过frame 和 page 切换页面
Hangdian oj2054 a = = B? ???
Excuse me, why is it that there are no consumption messages in redis and they are all piled up in redis? Cerely is used.
Dry goods | summarize the linkage use of those vulnerability tools
Interface automation test - solution of data dependency between interfaces