From: Swaraj Kumar Date: Fri, 18 Oct 2024 05:28:09 +0000 (+0530) Subject: Swagger file:delete training job for TM X-Git-Tag: 3.0.0~68^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=d57087594c3d653bd2d23251f3204fd4c03d471a;p=aiml-fw%2Fawmf%2Ftm.git Swagger file:delete training job for TM Change-Id: I8125d97cf6a459b525fc36adbaec88b67186e2f9 Signed-off-by: Swaraj Kumar --- diff --git a/API_docs/training-manager.yaml b/API_docs/training-manager.yaml index 178306b..e26200f 100644 --- a/API_docs/training-manager.yaml +++ b/API_docs/training-manager.yaml @@ -654,3 +654,52 @@ paths: Exception: type: "string" + /trainingjobs: + delete: + tags: + - Training Job + summary: "Delete a list of training job versions" + description: "Deletes the latest version of 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: + list: + type: "array" + items: + type: "object" + properties: + trainingjob_name: + type: "string" + description: "Name of the training job" + version: + type: "integer" + description: "Version of the training job" + 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" +