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

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

6.2:x-apigateway-backend.httpEndpoints

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

作用域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: "HTTP"
        httpEndpoints:
          address: "www.example.com"
          scheme: "http"
          method: "GET"
          path: "/users"
          retryCount: "3"
          timeout: 30000
support.huaweicloud.com/usermanual-roma/roma_03_2135.html