No momento, os seguintes atributos personalizados são suportados na definição do OAS. Reveja e sugira se há algo para melhorar.
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 terminal, sua configuração é a seguinte.
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"
Failover de 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"
Balanceamento 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"
SABÃO
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"
SOAP fialover
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"
Balanceamento 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"
Endpoints padrão
x-wso2-production-endpoints:
endpoint_type: "default"
x-wso2-sandbox-endpoints:
endpoint_type: "default"
Podemos mudar o
endpoint_type: "http" -> digite: "http"
Precisa de x-wso2-disable-security
para desativar a segurança de recursos https://github.com/wso2/product-microgateway#microgateway -supported-open-api-extensions
Precisa mudar
url -> urls
x-throttling-tier: "Ilimitado"
Deve ser x-wso2-throttling-tier
seja um único ponto de extremidade ou não, tem que ser uma matriz.
url: "https: // localhost: 9443 / publisher / apis / create / rest" ->
urls:
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"
precisa ser mudado para
HTTP failover
x-wso2-production-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
- "https://localhost:9443/publisher/apis/create/rest"
type: "failover"
O mesmo acontece com os endpoints de equilíbrio de carga
Precisa de
x-wso2-disable-security
para desativar a segurança de recursos https://github.com/wso2/product-microgateway#microgateway -supported-open-api-extensions
@praminda Esta informação já está lá com o nome 'x-auth-type ". Podemos reutilizar isso?
x-throttling-tier: "Ilimitado"
Deve ser x-wso2-throttling-tier
@hasuniea Esta informação já existe com o nome 'x-throttling-tier'. Podemos resgatar isso? caso contrário, haverá informações duplicadas na arrogância.
x-throttling-tier
No momento, o micro gateway suporta x-throttling-tier, portanto, é uma duplicação de dados, suponho que podemos mantê-lo como
x-auth-type
Sim, podemos usar esta extensão, uma vez que oferecemos suporte na MGW
Este problema foi corrigido. Portanto, fechando.