Por el momento, los siguientes atributos personalizados son compatibles con la definición de OEA. Revise y sugiera si hay algo que se pueda mejorar.
x-wso2-auth-header: "Authorization"
x-throttling-tier: "Unlimited"
x-wso2-cors:
corsConfigurationEnabled: false
accessControlAllowOrigins:
- "*"
accessControlAllowCredentials: false
accessControlAllowHeaders:
- "authorization"
- "Access-Control-Allow-Origin"
- "Content-Type"
- "SOAPAction"
accessControlAllowMethods:
- "GET"
- "PUT"
- "POST"
- "DELETE"
- "PATCH"
- "OPTIONS"
x-wso2-production-endpoints:
url: "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "http"
x-wso2-sandbox-endpoints:
url: "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "http"
x-wso2-basePath: "/sample/1.0.0"
x-wso2-transports:
- "http"
- "https"
Para cada tipo de punto final, su configuración es la siguiente.
HTTP
x-wso2-production-endpoints:
url: "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "http"
x-wso2-sandbox-endpoints:
url: "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "http"
Conmutación por error HTTP
x-wso2-production-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
- "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "http"
endpoint_config: "failover"
x-wso2-sandbox-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
- "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "http"
endpoint_config: "failover"
Equilibrio de carga HTTP
x-wso2-production-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "http"
endpoint_config: "load_balance"
x-wso2-sandbox-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "http"
endpoint_config: "load_balance"
JABÓN
x-wso2-production-endpoints:
url: "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "address"
x-wso2-sandbox-endpoints:
url: "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "address"
Fialover de jabón
x-wso2-production-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
- "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "address"
endpoint_config: "failover"
x-wso2-sandbox-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
- "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "address"
endpoint_config: "failover"
Balance de carga SOAP
x-wso2-production-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "address"
endpoint_config: "load_balance"
x-wso2-sandbox-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "address"
endpoint_config: "load_balance"
Puntos finales predeterminados
x-wso2-production-endpoints:
endpoint_type: "default"
x-wso2-sandbox-endpoints:
endpoint_type: "default"
¿Podríamos cambiar el
endpoint_type: "http" -> tipo: "http"
Necesita x-wso2-disable-security
para deshabilitar la seguridad de los recursos https://github.com/wso2/product-microgateway#microgateway -supported-open-api-extensions
Necesita cambiar
url -> urls
x-throttling-tier: "Ilimitado"
Esto debería ser x-wso2-throttling-tier
ya sea un único punto final o no, tiene que ser una matriz.
url: "https: // localhost: 9443 / publisher / apis / create / rest" ->
URL:
HTTP failover
x-wso2-production-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
- "https://localhost:9443/publisher/apis/create/rest"
endpoint_type: "http"
endpoint_config: "failover"
necesita ser cambiado a
HTTP failover
x-wso2-production-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
- "https://localhost:9443/publisher/apis/create/rest"
type: "failover"
Lo mismo ocurre con los puntos finales de equilibrio de carga.
Necesita
x-wso2-disable-security
para deshabilitar la seguridad de los recursos https://github.com/wso2/product-microgateway#microgateway -supported-open-api-extensions
@praminda Esta información ya está ahí bajo el nombre 'x-auth-type ". ¿Podemos reutilizar eso?
x-throttling-tier: "Ilimitado"
Esto debería ser x-wso2-throttling-tier
@hasuniea Esta información ya está ahí con el nombre 'x-throttling-tier'. ¿Podemos rescatarlo? de lo contrario, habrá información duplicada en el swagger.
nivel de aceleración x
En este momento, micro gateway admite x-throttling-tier, por lo tanto, es una duplicación de datos, supongo que podemos mantenerlo como está
x-auth-type
Sí, podemos usar esta extensión, ya que la apoyamos en MGW.
Este problema está solucionado. De ahí el cierre.