Product-apim: تحسين تعريف OAS لدعم Micro GW

تم إنشاؤها على ٧ أكتوبر ٢٠١٩  ·  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"

ميزان تحميل الصابون
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-extension

يحتاج للتغيير
url -> عناوين url

x-throttling-tier: "غير محدود"
يجب أن يكون هذا 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-extension

praminda هذه المعلومات موجودة بالفعل تحت اسم "x-auth-type" ، هل يمكننا إعادة استخدامها؟

x-throttling-tier: "غير محدود"
يجب أن يكون هذا x-wso2-throttling-tier

hasuniea هذه المعلومات موجودة بالفعل باسم "x-throttling-tier". هل يمكننا إعادة ذلك؟ وإلا ستكون هناك معلومات مكررة في اختيال.

x- الاختناق-الطبقة

تدعم البوابة الصغيرة الآن x-throttling-tier ، ومن ثم فهي تكرار للبيانات ، وأعتقد أنه يمكننا الاحتفاظ بها كما هي

x-auth-type

نعم يمكننا استخدام هذا الامتداد ، لأننا ندعمه في MGW

تم إصلاح هذه المشكلة. ومن ثم الختام.

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات