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

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

6.1:x-apigateway-backend.parameters

含义:ROMA Connect定义的API后端参数定义。

作用域x-apigateway-backend

示例

paths:
  '/users/{userId}':
    get:
      produces:
        - "application/json"
      parameters:
        - name: "X-Auth-Token"
          description: "authorization token"
          type: "string"
          in: "header"
          required: true
        - name: "userId"
          description: "user name"
          type: "string"
          in: "path"
          required: true
      responses:
        default:
          description: "default response"
      x-apigateway-request-type: "public"
      x-apigateway-backend:
        type: "HTTP"
        parameters:
          - name: "userId"
            value: "userId"
            in: "query"
            origin: "REQUEST"
            description: "user name"
          - name: "X-Invoke-User"
            value: "apigateway"
            in: "header"
            origin: "CONSTANT"
            description: "invoke user"
support.huaweicloud.com/usermanual-roma/roma_03_2135.html