fix the feature group creation url according to the tm change 36/14236/1
authorTaewan Kim <t25.kim@samsung.com>
Tue, 11 Mar 2025 01:48:20 +0000 (10:48 +0900)
committerTaewan Kim <t25.kim@samsung.com>
Tue, 11 Mar 2025 01:48:20 +0000 (10:48 +0900)
Change-Id: I410bc2b0aaa5dda31d1a7490f25ad856d0157684
Signed-off-by: Taewan Kim <t25.kim@samsung.com>
src/apis/feature-group.js
src/components/home/form/CreateFeatureGroupForm.js

index 9db74db..4525a7e 100644 (file)
@@ -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 });
index 37ab469..618d645 100644 (file)
@@ -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();
         }