更新时间:2023-12-07 GMT+08:00
分享

x-apigateway-backend.mockEndpoints

含义:API网关定义的MOCK类型API后端服务定义。

作用域x-apigateway-backend

示例

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"
表1 参数说明

参数

是否必选

类型

说明

result-content

String

MOCK返回结果

分享:

    相关文档

    相关产品