更新时间:2024-08-07 GMT+08:00
x-apigateway-backend.mockEndpoints
含义:API网关定义的MOCK类型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: "MOCK"
mockEndpoints:
result-content: "mocked"
|
参数 |
是否必选 |
类型 |
说明 |
|---|---|---|---|
|
result-content |
是 |
String |
MOCK返回结果 |
父主题: 扩展定义