From 3875eae945951a787f147d5b813a8153bfaa1479 Mon Sep 17 00:00:00 2001 From: Swaraj Kumar Date: Fri, 18 Oct 2024 11:44:00 +0530 Subject: [PATCH] Swagger file:upload model for mme Change-Id: I865a77dc64adf149c6b987f1a3f06aca0d8fd965 Signed-off-by: Swaraj Kumar --- API_docs/mme.yaml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/API_docs/mme.yaml b/API_docs/mme.yaml index dcc766f..a3c8a10 100644 --- a/API_docs/mme.yaml +++ b/API_docs/mme.yaml @@ -134,3 +134,42 @@ paths: description: Model deleted successfully '500': description: Internal Server Error + + /uploadModel/{modelName}: + post: + tags: + - Model Management + summary: Upload a new version of the model + operationId: uploadModel + parameters: + - name: modelName + in: path + required: true + schema: + type: string + requestBody: + required: true + content: + multipart/form-data: + schema: + type: object + properties: + file: + type: string + format: binary + responses: + '200': + description: Model uploaded successfully + content: + application/json: + schema: + type: object + properties: + code: + type: integer + example: 200 + message: + type: string + example: "Model uploaded successfully." + '500': + description: Internal Server Error -- 2.16.6