From 648181cbdac3ae2b65907e3b0981da26bc3be7ce Mon Sep 17 00:00:00 2001 From: Swaraj Kumar Date: Fri, 18 Oct 2024 10:55:52 +0530 Subject: [PATCH] Swagger file:retraining for TM Change-Id: I028f051bb2b91c0c8c195ac577cd5610a68ce57e Signed-off-by: Swaraj Kumar --- API_docs/training-manager.yaml | 53 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) 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" + -- 2.16.6