From: Taewan Kim Date: Tue, 11 Mar 2025 01:48:20 +0000 (+0900) Subject: fix the feature group creation url according to the tm change X-Git-Tag: 4.0.0~8^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F36%2F14236%2F1;p=portal%2Faiml-dashboard.git fix the feature group creation url according to the tm change Change-Id: I410bc2b0aaa5dda31d1a7490f25ad856d0157684 Signed-off-by: Taewan Kim --- diff --git a/src/apis/feature-group.js b/src/apis/feature-group.js index 9db74db..4525a7e 100644 --- a/src/apis/feature-group.js +++ b/src/apis/feature-group.js @@ -8,7 +8,7 @@ export const featureGroupAPI = { return await instance.get(`/featureGroup/${params.featureGroupName}`); }, createFeatureGroup: async ({ data }) => { - return await instance.post('/featureGroup', { ...data }); + return await instance.post('/ai-ml-model-training/v1/featureGroup', { ...data }); }, deleteFeatureGroup: async ({ data }) => { return await instance.delete('/featureGroup', { ...data }); diff --git a/src/components/home/form/CreateFeatureGroupForm.js b/src/components/home/form/CreateFeatureGroupForm.js index 37ab469..618d645 100644 --- a/src/components/home/form/CreateFeatureGroupForm.js +++ b/src/components/home/form/CreateFeatureGroupForm.js @@ -216,7 +216,7 @@ class CreateFeatureGroup extends React.Component { }) .then(res => { this.logger('featureGroup Created', res.data); - if (res.status === 200) { + if (res.status === 201) { alert('FeatureGroup Created'); this.resetForm(); }