应用与数据集成平台 ROMA Connect-附录:自定义后端的Swagger扩展定义:5.1 x-livedata-scripts.datasources

时间:2025-02-12 15:03:18

5.1 x-livedata-scripts.datasources

含义:自定义后端的数据源定义。

作用域x-livedata-scripts

示例

paths:  '/users':    get:      produces:        - "application/json"      responses:        default:          description: "default response"      x-livedata-scripts:        - type: "function"          content: "custom-script-content"          result: "custom-script-result"          datasource:            name: "custom-datasource-name"
表6 参数说明

参数

是否必选

类型

说明

name

String

数据源名称。

support.huaweicloud.com/usermanual-roma/apic-ug-190216028.html