From: Swaraj Kumar Date: Fri, 18 Oct 2024 05:25:52 +0000 (+0530) Subject: Swagger file:retraining for TM X-Git-Tag: 3.0.0~69^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=648181cbdac3ae2b65907e3b0981da26bc3be7ce;p=aiml-fw%2Fawmf%2Ftm.git Swagger file:retraining for TM Change-Id: I028f051bb2b91c0c8c195ac577cd5610a68ce57e Signed-off-by: Swaraj Kumar --- diff --git a/API_docs/training-manager.yaml b/API_docs/training-manager.yaml index 13cdca8..178306b 100644 --- a/API_docs/training-manager.yaml +++ b/API_docs/training-manager.yaml @@ -601,3 +601,56 @@ paths: properties: Exception: type: "string" + + /trainingjobs/retraining: + post: + tags: + - Training Job + summary: "Retrain training jobs" + description: "Retrains the training jobs specified in the request. The overall status of the training job should be 'failed' or 'finished', and deletion should not be in progress." + parameters: + - name: "body" + in: "body" + required: true + schema: + type: "object" + properties: + trainingjobs_list: + type: "array" + items: + type: "object" + properties: + trainingjob_name: + type: "string" + description: "Name of the training job" + notification_url: + type: "string" + description: "Optional URL for notifications" + feature_filter: + type: "string" + description: "Optional feature filter" + responses: + 200: + description: "Retraining 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" +