更新时间:2024-10-09 GMT+08:00
        
          
          
        
      
      
      
      
      
      
      
      
  
      
      
      
        
x-apigateway-backend
含义:API网关定义的API后端服务定义。
作用域:Operation Object(2.0)/Operation Object(3.0)
示例:
paths:
  '/users/{userId}':
    get:
      produces:
        - "application/json"
      responses:
        default:
          description: "default response"
      x-apigateway-request-type: "public"
      x-apigateway-backend:
        type: "backend endpoint type"
 | 
       参数  | 
     
       是否必选  | 
     
       类型  | 
     
       说明  | 
    
|---|---|---|---|
| 
       x-apigateway-backend  | 
     
       是  | 
     
       String  | 
     
       API后端服务定义  | 
    
| 
       type  | 
     
       是  | 
     
       String  | 
     
       后端服务类型,支持HTTP、HTTP-VPC、FUNCTION、MOCK  | 
    
| 
       parameters  | 
     
       否  | 
     
       后端参数定义  | 
    |
| 
       httpEndpoints  | 
     
       否  | 
     
       HTTP类型后端服务定义  | 
    |
| 
       httpVpcEndpoints  | 
     
       否  | 
     
       HTTP-VPC类型后端服务定义  | 
    |
| 
       functionEndpoints  | 
     
       否  | 
     
       FUNCTION类型后端服务定义  | 
    |
| 
       mockEndpoints  | 
     
       否  | 
     
       MOCK类型后端服务定义  | 
    
   父主题: 扩展定义