应用与数据集成平台 ROMA Connect-附录:API的Swagger扩展定义:6.4:x-apigateway-backend.functionEndpoints

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

6.4:x-apigateway-backend.functionEndpoints

含义:ROMA Connect定义的FUNCTION类型后端服务定义。

作用域x-apigateway-backend

示例

paths:  '/users/{userId}':    get:      produces:        - "application/json"      parameters:        - name: "X-Auth-Token"          description: "authorization token"          type: "string"          in: "header"          required: true      responses:        default:          description: "default response"      x-apigateway-request-type: "public"      x-apigateway-backend:        type: "FUNCTION"        functionEndpoints:          version: "v1"          function-urn: ""          invocation-type: "synchronous"          timeout: 30000
表9 参数说明

参数

是否必选

类型

说明

function-urn

String

函数的URN地址。

version

String

函数的版本。

invocation-type

String

函数的调用类型,支持“async”和“sync”。

timeout

Number

函数超时时间,单位毫秒,缺省值为5000,取值范围为1-60000。

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