检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
后导入的会显示导入失败。 导入的API定义与已有的API定义冲突时,您可以选择使用导入的API定义覆盖已有的API定义,或者保留已有的API定义,此时导入的API定义会显示导入失败。 如果选择扩展覆盖,当导入API的扩展定义项名称与已有策略(ACL,流量控制等)名称相同时,则会覆盖已有策略(ACL,流量控制等)。
APIG的API设计文件扩展定义 x-apigateway-auth-type x-apigateway-request-type x-apigateway-match-mode x-apigateway-cors x-apigateway-is-send-fg-body-base64
x-apigateway-is-send-fg-body-base64 否 boolean 是否对与FunctionGraph交互场景的请求体进行Base64编码。 true:编码。 false:不编码。 父主题: APIG的API设计文件扩展定义
get: x-apigateway-content-type: application/json 父主题: APIG的API设计文件扩展定义
参数 是否必选 类型 说明 x-apigateway-any-method 否 String API请求方法。 父主题: APIG的API设计文件扩展定义
x-apigateway-access-controls 含义:访问控制策略名称与关联策略映射。 作用域:Swagger Object 示例: x-apigateway-access-controls: customAccessControlName: acl-type:
参数 是否必选 类型 说明 x-apigateway-plugins 否 Array API所绑定的插件名列表。 父主题: APIG的API设计文件扩展定义
API类型,支持public和private。 public:公开类型API,可以上架。 private:私有类型API,不会被上架。 父主题: APIG的API设计文件扩展定义
name: test in: query required: true` 父主题: APIG的API设计文件扩展定义
示例: paths: /: get: x-apigateway-response: test 父主题: APIG的API设计文件扩展定义
”匹配,但“/prefixpart”却不会被匹配。 NORMAL:绝对匹配,如“/prefix/foo”只能被“/prefix/foo”匹配。 父主题: APIG的API设计文件扩展定义
"error_msg":"Access denied","request_id":"$context.requestId"} 父主题: APIG的API设计文件扩展定义
name: test in: query required: true 父主题: APIG的API设计文件扩展定义
timeout 否 Number 后端请求超时时间,单位毫秒,缺省值为5000,取值范围为1 ~ 60000。 父主题: APIG的API设计文件扩展定义
x-apigateway-ratelimits 含义:流控策略名称与关联策略映射。 作用域:Swagger Object 示例: x-apigateway-ratelimits: customRatelimitName: api-limit: 200 app-limit:
special 否 x-apigateway-ratelimits.policy.special 对象数组 特殊流控策略。 父主题: APIG的API设计文件扩展定义
参数说明 参数 是否必选 类型 说明 x-apigateway-ratelimit 否 String 流控策略。 父主题: APIG的API设计文件扩展定义
name: test in: query required: true 父主题: APIG的API设计文件扩展定义
表1 参数说明 参数 是否必选 类型 说明 result-content 是 String MOCK返回结果。 父主题: APIG的API设计文件扩展定义
thods GET,POST,PUT,DELETE,HEAD,OPTIONS,PATCH 正式请求允许的方法。 父主题: APIG的API设计文件扩展定义