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

时间:2024-06-25 14:09:33

6.5:x-apigateway-backend.mockEndpoints

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

作用域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: "MOCK"
        mockEndpoints:
          result-content: "mocked"
support.huaweicloud.com/usermanual-roma/apic-ug-190216027.html