Swagger file:feature group name for TM 56/13656/1
authorSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:32:46 +0000 (11:02 +0530)
committerSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:32:46 +0000 (11:02 +0530)
Change-Id: Ifbbef3ec7529c8ce5c2675c9ffa4205bdc25c271
Signed-off-by: Swaraj Kumar <swaraj.kumar@samsung.com>
API_docs/training-manager.yaml

index a767422..55c0138 100644 (file)
@@ -897,3 +897,79 @@ paths:
               Exception:
                 type: "string"
 
+  /featureGroup/{featuregroup_name}:
+    get:
+      tags:
+        - Feature Group
+      summary: "Get feature group by name"
+      description: "Fetches details of the specified feature group."
+      parameters:
+        - name: "featuregroup_name"
+          in: "path"
+          required: true
+          type: "string"
+          description: "Name of the feature group"
+      responses:
+        200:
+          description: "Successful response with feature group details"
+          schema:
+            type: "object"
+            properties:
+              featuregroup:
+                type: "array"
+                items:
+                  type: "object"
+                  properties:
+                    featuregroup_name:
+                      type: "string"
+                    features:
+                      type: "string"
+                    datalake:
+                      type: "string"
+                    host:
+                      type: "string"
+                    port:
+                      type: "string"
+                    bucket:
+                      type: "string"
+                    token:
+                      type: "string"
+                    db_org:
+                      type: "string"
+                    measurement:
+                      type: "string"
+                    dme:
+                      type: "boolean"
+                    measured_obj_class:
+                      type: "string"
+                    dme_port:
+                      type: "string"
+                    source_name:
+                      type: "string"
+        400:
+          description: "Invalid feature group name"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"
+        404:
+          description: "Feature group not found"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"
+        500:
+          description: "Internal server error"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"
+definitions:
+  ErrorResponse:
+    type: "object"
+    properties:
+      Exception:
+        type: "string"