Product-apim: لا يمكن تحرير تعريف API

تم إنشاؤها على ٢٥ فبراير ٢٠٢٠  ·  3تعليقات  ·  مصدر: wso2/product-apim

لقد تم إنشاء نموذج API.
عندما أقوم بتعديل اسم المورد من القائمة إلى menu123 وانقر لتحديث المحتوى
Screenshot from 2020-02-25 15-10-05

في Over View ، يمكنني رؤية تغيير اسم المورد إلى menu123
Screenshot from 2020-02-25 15-17-58

بعد ذلك ، أنقر فقط على حفظ في تكوينات وقت التشغيل ، فتتغير مرة أخرى إلى القائمة
قبل
Screenshot from 2020-02-25 15-26-14
بعد، بعدما
Screenshot from 2020-02-25 15-27-05

3.1.0 PrioritHigh React-UI TypQuestion

ال 3 كومينتر

ساعدني ~~

Thangthanh ، كحل بديل يمكنك اتباع الخطوات المذكورة أدناه:

  1. تحديث تعريف التباهي
  2. أعد نشر API من علامة التبويب دورة الحياة

بعد إعادة النشر ، إذا أجريت أي تغييرات على تكوينات وقت التشغيل ، فلن يؤثر ذلك على التغييرات التي تم إجراؤها على الموارد.

تضمين التغريدة

شكرا للإبلاغ عن هذه المسألة،

@ vithu30

فيما يلي حل محتمل لهذه المشكلة ،

diff --git a/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/APIDefinition/APIDefinition.jsx b/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/APIDefinition/APIDefinition.jsx
index b14a6305a9..fafd494bba 100644
--- a/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/APIDefinition/APIDefinition.jsx
+++ b/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/APIDefinition/APIDefinition.jsx
@@ -317,7 +317,7 @@ class APIDefinition extends React.Component {
      * <strong i="11">@param</strong> {string} toFormat The format it can be converted to.
      * */
     updateSwaggerDefinition(swaggerContent, specFormat, toFormat) {
-        const { api, intl } = this.props;
+        const { api, intl, updateAPI } = this.props;
         let parsedContent = {};
         if (this.hasJsonStructure(swaggerContent)) {
             parsedContent = JSON.parse(swaggerContent);
@@ -351,6 +351,7 @@ class APIDefinition extends React.Component {
                         this.setState({ swagger: swaggerContent });
                     }
                 }
+                updateAPI();
             })
             .catch((err) => {
                 console.log(err);
diff --git a/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/index.jsx b/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/index.jsx
index e18f4b1de4..5764c2e1aa 100644
--- a/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/index.jsx
+++ b/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/index.jsx
@@ -651,7 +651,7 @@ class Details extends Component {
                                 <Route path={Details.subPaths.OVERVIEW} component={() => <Overview api={api} />} />
                                 <Route
                                     path={Details.subPaths.API_DEFINITION}
-                                    component={() => <APIDefinition api={api} />}
+                                    component={() => <APIDefinition api={api} updateAPI={this.updateAPI} />}
                                 />
                                 <Route
                                     path={Details.subPaths.WSDL}
هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات