์ํ API๋ฅผ ๋ง๋ค์์ต๋๋ค.
๋ฉ๋ด์์ ๋ฉ๋ด 123์ผ๋ก ๋ฆฌ์์ค์ ์ด๋ฆ์ ์์ ํ๊ณ ์ฝํ
์ธ ๋ฅผ ์
๋ฐ์ดํธํ๊ธฐ ์ํด ํด๋ฆญํ ๋
Over View์์ menu123์ผ๋ก ๋ณ๊ฒฝ๋ ๋ฆฌ์์ค ์ด๋ฆ์ ๋ณผ ์ ์์ต๋๋ค.
๊ทธ๋ฐ ๋ค์ ๋ฐํ์ ๊ตฌ์ฑ์์ ์ ์ฅ์ ํด๋ฆญํ๊ธฐ๋ง ํ๋ฉด ๋ฉ๋ด๋ก ๋ค์ ๋ณ๊ฒฝ๋ฉ๋๋ค.
์ ์
~ ํ์
๋์์ค~~
@Thangthanh , ํด๊ฒฐ ๋ฐฉ๋ฒ์ผ๋ก ์๋์ ์ธ๊ธ๋ ๋จ๊ณ๋ฅผ ๋ฐ๋ฅผ ์ ์์ต๋๋ค.
์ฌ๋ฐฐํฌ ํ ๋ฐํ์ ๊ตฌ์ฑ์ ๋ณ๊ฒฝํ ๊ฒฝ์ฐ ๋ฆฌ์์ค์ ๋ํ ๋ณ๊ฒฝ ์ฌํญ์๋ ์ํฅ์ ๋ฏธ์น์ง ์์ต๋๋ค.
@ํํ ,
์ด ๋ฌธ์ ๋ฅผ ์ ๊ณ ํด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค.
@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}