現在、以下のカスタム属性がOAS定義でサポートされています。 改善すべき点があるかどうかを確認して提案してください。
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"
エンドポイントタイプごとの構成は次のとおりです。
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フェイルオーバー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負荷分散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"
石鹸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ファイアオーバー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ロードバランス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"
デフォルトのエンドポイントx-wso2-production-endpoints:
endpoint_type: "default"
x-wso2-sandbox-endpoints:
endpoint_type: "default"
変更してもらえますか
endpoint_type: "http"->タイプ: "http"
リソースのセキュリティを無効にするにはx-wso2-disable-security
が必要ですhttps://github.com/wso2/product-microgateway#microgateway -supported-open-api-extensions
変更する必要があります
url-> urls
xスロットリング層:「無制限」
これはx-wso2-throttling-tierである必要があります
単一のエンドポイントであるかどうかにかかわらず、それは配列である必要があります。
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"
に変更する必要があります
HTTP failover
x-wso2-production-endpoints:
url:
- "https://localhost:9443/publisher/apis/create/rest"
- "https://localhost:9443/publisher/apis/create/rest"
type: "failover"
同じことが負荷分散エンドポイントにも当てはまります
リソースのセキュリティを無効にするには
x-wso2-disable-security
が必要ですhttps://github.com/wso2/product-microgateway#microgateway -supported-open-api-extensions
@pramindaこの情報はすでに「x-auth-type」という名前で存在しています。それを再利用できますか?
xスロットリング層:「無制限」
これはx-wso2-throttling-tierである必要があります
@hasunieaこの情報は、「x-throttling-tier」という名前ですでに存在しています。 再発行できますか? そうしないと、Swaggerに重複する情報があります。
xスロットリング層
現在、マイクロゲートウェイはxスロットリング層をサポートしているため、データの重複です。
x-auth-type
はい、MGWでサポートしているため、この拡張機能を使用できます
この問題は修正されました。 したがって、閉じます。