From: Swaraj Kumar Date: Fri, 18 Oct 2024 05:31:25 +0000 (+0530) Subject: Swagger file:feature group for TM X-Git-Tag: 3.0.0~66^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=60bcd58b55687930dd49a84448c04a05649bb73c;p=aiml-fw%2Fawmf%2Ftm.git Swagger file:feature group for TM Change-Id: Ifd9946ffd9a63990aae8ecde7378a4e00d390d7d Signed-off-by: Swaraj Kumar --- 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" +