Product-apim: MicroGWをサポートするようにOAS定義を改善する

作成日 2019年10月07日  ·  11コメント  ·  ソース: wso2/product-apim

現在、以下のカスタム属性が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"

全てのコメント11件

変更してもらえますか
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でサポートしているため、この拡張機能を使用できます

この問題は修正されました。 したがって、閉じます。

このページは役に立ちましたか?
0 / 5 - 0 評価