更新时间:2025-01-10 GMT+08:00
x-apigateway-backend.functionEndpoints
含义:API网关定义的FUNCTION类型API后端服务定义。
示例:
paths:
'/users/{userId}':
get:
produces:
- "application/json"
parameters:
- name: "X-Auth-Token"
description: "认证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
|
参数 |
是否必选 |
类型 |
说明 |
|---|---|---|---|
|
function-urn |
是 |
String |
函数URN地址。 |
|
version |
是 |
String |
函数版本。 |
|
invocation-type |
是 |
String |
函数调用类型,支持异步或同步。 |
|
timeout |
否 |
Number |
函数超时时间,单位毫秒,缺省值为5000,取值范围为1~60000。 |
父主题: APIG的API设计文件扩展定义