Swagger file:feature group for TM 55/13655/1
authorSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:31:25 +0000 (11:01 +0530)
committerSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:31:25 +0000 (11:01 +0530)
Change-Id: Ifd9946ffd9a63990aae8ecde7378a4e00d390d7d
Signed-off-by: Swaraj Kumar <swaraj.kumar@samsung.com>
API_docs/training-manager.yaml

index 9796e85..a767422 100644 (file)
@@ -757,3 +757,143 @@ paths:
               Exception:
                 type: "string"
 
+  /featureGroup:
+    delete:
+      tags:
+        - Feature Group
+      summary: "Delete a list of feature groups"
+      description: "Deletes the feature groups specified in the request. If the feature group is associated with DME, the corresponding DME job is also deleted."
+      parameters:
+        - name: "body"
+          in: "body"
+          required: true
+          schema:
+            type: "object"
+            properties:
+              featuregroups_list:
+                type: "array"
+                items:
+                  type: "object"
+                  properties:
+                    featureGroup_name:
+                      type: "string"
+                      description: "Name of the feature group to be deleted"
+      responses:
+        200:
+          description: "Deletion results"
+          schema:
+            type: "object"
+            properties:
+              success_count:
+                type: "integer"
+              failure_count:
+                type: "integer"
+        400:
+          description: "Invalid request or missing data"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"
+        500:
+          description: "Internal server error"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"
+    post:
+      tags:
+        - Feature Group
+      summary: "Create a feature group"
+      description: "Creates a new feature group with the provided details."
+      parameters:
+        - name: "body"
+          in: "body"
+          required: true
+          schema:
+            type: "object"
+            properties:
+              featureGroupName:
+                type: "string"
+              feature_list:
+                type: "string"
+              datalake:
+                type: "string"
+              bucket:
+                type: "string"
+              host:
+                type: "string"
+              port:
+                type: "string"
+              token:
+                type: "string"
+              db_org:
+                type: "string"
+              measurement:
+                type: "string"
+              enable_Dme:
+                type: "boolean"
+              source_name:
+                type: "string"
+              DmePort:
+                type: "string"
+              measured_obj_class:
+                type: "string"
+              datalake_source:
+                type: "string"
+      responses:
+        201:
+          description: "Feature group created successfully"
+          schema:
+            type: "object"
+            properties:
+              result:
+                type: "string"
+        400:
+          description: "Invalid feature group data or feature group already exists"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"
+        500:
+          description: "Internal server error"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"
+
+    get:
+      tags:
+        - Feature Group
+      summary: "Get all feature groups"
+      description: "Fetches all feature groups available."
+      responses:
+        200:
+          description: "Successful response with all feature groups"
+          schema:
+            type: "object"
+            properties:
+              featuregroups:
+                type: "array"
+                items:
+                  type: "object"
+                  properties:
+                    featuregroup_name:
+                      type: "string"
+                    features:
+                      type: "string"
+                    datalake:
+                      type: "string"
+                    dme:
+                      type: "boolean"
+        500:
+          description: "Internal server error"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"
+