From ce7a337ad3c0c70641f8d97ca9ef1fe2d49f14eb Mon Sep 17 00:00:00 2001 From: rajdeep11 Date: Wed, 26 Apr 2023 15:29:18 +0530 Subject: [PATCH] updation the apis Issue-Id: AIMLFW-40 Change-Id: Iaabe9d1db7032b2db18b14d9d8276398e5493be8 Signed-off-by: rajdeep11 --- src/components/home/form/CreateFeatureGroupForm.js | 4 ++-- src/components/home/status/FeatureGroupInfo.js | 2 +- src/components/home/status/ListFeatureGroup.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/home/form/CreateFeatureGroupForm.js b/src/components/home/form/CreateFeatureGroupForm.js index 8815bb8..ceb3d08 100644 --- a/src/components/home/form/CreateFeatureGroupForm.js +++ b/src/components/home/form/CreateFeatureGroupForm.js @@ -129,9 +129,9 @@ class CreateFeatureGroup extends React.Component { } invokeAddFeatureGroup(event) { - this.logger('Add New Request is posted at ' + this.state.UCMgr_baseUrl + '/trainingjobs/' + "featureGroup") + this.logger('Add New Request is posted at ' + this.state.UCMgr_baseUrl + "/featureGroup") let convertedDatalakeDBName = convertDatalakeDBName(this.state.dataLake); - axios.post(this.state.UCMgr_baseUrl + '/trainingjobs/' + "featureGroup", { + axios.post(this.state.UCMgr_baseUrl + "/featureGroup", { "featureGroupName": this.state.featureGroupName, "feature_list": this.state.featureNames, "datalake_source": convertedDatalakeDBName, diff --git a/src/components/home/status/FeatureGroupInfo.js b/src/components/home/status/FeatureGroupInfo.js index 4be78a3..7816611 100644 --- a/src/components/home/status/FeatureGroupInfo.js +++ b/src/components/home/status/FeatureGroupInfo.js @@ -35,7 +35,7 @@ const FeatureGroupInfo = (props) => { useEffect(()=>{ try{ - axios.get(`${UCMgr_baseUrl}/trainingjobs/featureGroup/${props.featureGroupName.featureGroupName}`) + axios.get(`${UCMgr_baseUrl}/featureGroup/${props.featureGroupName.featureGroupName}`) .then(response => { console.log(`response for ${UCMgr_baseUrl}/trainingjobs/featureGroup/${props.featureGroupName.featureGroupName}`, response) setFeatureGroupName(response.data.featuregroup[0].featuregroup_name) diff --git a/src/components/home/status/ListFeatureGroup.js b/src/components/home/status/ListFeatureGroup.js index 2c50551..4e84556 100644 --- a/src/components/home/status/ListFeatureGroup.js +++ b/src/components/home/status/ListFeatureGroup.js @@ -46,7 +46,7 @@ const ListFeatureGroup = (props) => { const fetchFeatureGroups = async () => { logger('fetchFeatureGroup UCMgr_baseUrl', UCMgr_baseUrl) try { - const result = await axios.get(`${UCMgr_baseUrl}/trainingjobs/featureGroup`); + const result = await axios.get(`${UCMgr_baseUrl}/featureGroup`); logger('fetchFeatureGroup Result', result); logger('feature groups are --> ', result.data.featuregroups) setFeatureGroups(result.data.featuregroups); -- 2.16.6