Pour le moment, les attributs personnalisés suivants sont pris en charge dans la définition OAS. Veuillez revoir et suggérer s'il y a quelque chose à améliorer.
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"
Pour chaque type de point de terminaison, sa configuration est la suivante.
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"
basculement 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"
Équilibre de charge 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"
SAVON
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 SOAP
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"
Équilibre de charge 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"
Points de terminaison par défaut
x-wso2-production-endpoints:
endpoint_type: "default"
x-wso2-sandbox-endpoints:
endpoint_type: "default"
Pourrions-nous changer le
endpoint_type : "http" -> type : "http"
Besoin de x-wso2-disable-security
pour désactiver la sécurité des ressources https://github.com/wso2/product-microgateway#microgateway -supported-open-api-extensions
A besoin de changer
URL -> URL
x-throttling-tier : "Illimité"
Cela devrait être x-wso2-throttling-tier
qu'il s'agisse d'un seul point de terminaison ou non, il doit s'agir d'un tableau.
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"
doit être changé en
HTTP failover
x-wso2-production-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
- "https://localhost:9443/publisher/apis/create/rest"
type: "failover"
Il en va de même avec les points de terminaison d'équilibrage de charge
Besoin de
x-wso2-disable-security
pour désactiver la sécurité des ressources https://github.com/wso2/product-microgateway#microgateway -supported-open-api-extensions
@praminda Cette information est déjà là sous le nom 'x-auth-type". Pouvons-nous réutiliser cela ?
x-throttling-tier : "Illimité"
Cela devrait être x-wso2-throttling-tier
@hasuniea Cette information est déjà là avec le nom 'x-throttling-tier'. Pouvons-nous le reprendre ? sinon, il y aura des informations en double dans le swagger.
x-throttling-tier
À l'heure actuelle, la micro passerelle prend en charge le niveau x-throttling, il s'agit donc d'une duplication de données, je suppose que nous pouvons la conserver telle quelle
x-auth-type
Oui, nous pouvons utiliser cette extension, car nous la supportons chez MGW
Ce problème est résolu. D'où la fermeture.