From 60bcd58b55687930dd49a84448c04a05649bb73c Mon Sep 17 00:00:00 2001 From: Swaraj Kumar Date: Fri, 18 Oct 2024 11:01:25 +0530 Subject: [PATCH] Swagger file:feature group for TM Change-Id: Ifd9946ffd9a63990aae8ecde7378a4e00d390d7d Signed-off-by: Swaraj Kumar --- API_docs/training-manager.yaml | 140 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 140 insertions(+) diff --git a/API_docs/training-manager.yaml b/API_docs/training-manager.yaml index 9796e85..a767422 100644 --- a/API_docs/training-manager.yaml +++ b/API_docs/training-manager.yaml @@ -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" + -- 2.16.6