Im Moment werden die folgenden benutzerdefinierten Attribute in der OAS-Definition unterstützt. Bitte überprüfen Sie und schlagen Sie vor, wenn es etwas zu verbessern gibt.
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"
Für jeden Endpunkttyp ist die Konfiguration wie folgt.
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"
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"
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"
HTTP-Lastenausgleich
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"
SEIFE
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"
SOAP-Lastenausgleich
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"
Standardendpunkte
x-wso2-production-endpoints:
endpoint_type: "default"
x-wso2-sandbox-endpoints:
endpoint_type: "default"
Könnten wir das ändern?
endpoint_type: "http" -> Typ: "http"
Benötigen Sie x-wso2-disable-security
, um die Sicherheit für Ressourcen zu deaktivieren https://github.com/wso2/product-microgateway#microgateway -supported-open-api-extensions
Muss sich ändern
URL -> URLs
x-Throttling-Stufe: "Unbegrenzt"
Dies sollte x-wso2-throttling-tier sein
Ob ein einzelner Endpunkt oder nicht, es muss ein Array sein.
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"
muss geändert werden in
HTTP failover
x-wso2-production-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
- "https://localhost:9443/publisher/apis/create/rest"
type: "failover"
Gleiches gilt für die Lastausgleichsendpunkte
Benötigen Sie
x-wso2-disable-security
, um die Sicherheit für Ressourcen zu deaktivieren https://github.com/wso2/product-microgateway#microgateway -supported-open-api-extensions
@praminda Diese Informationen sind bereits unter dem Namen 'x-auth-type' vorhanden. Können wir das wiederverwenden?
x-Throttling-Stufe: "Unbegrenzt"
Dies sollte x-wso2-throttling-tier sein
@hasuniea Diese Information ist bereits mit dem Namen 'x-throttling-tier' vorhanden. Können wir es wieder aufnehmen? andernfalls gibt es doppelte Informationen in der Prahlerei.
x-Throttling-Stufe
Im Moment unterstützt das Micro-Gateway x-Throttling-Tier, daher handelt es sich um eine Duplizierung von Daten. Ich gehe davon aus, dass wir es so behalten können, wie es ist
x-auth-typ
Ja, wir können diese Erweiterung verwenden, da wir sie bei MGW unterstützen
Dieses Problem ist behoben. Daher schließen.