From: Swaraj Kumar Date: Fri, 18 Oct 2024 06:14:00 +0000 (+0530) Subject: Swagger file:upload model for mme X-Git-Tag: 4.0.0~25 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F61%2F13661%2F1;p=aiml-fw%2Fawmf%2Fmodelmgmtservice.git Swagger file:upload model for mme Change-Id: I865a77dc64adf149c6b987f1a3f06aca0d8fd965 Signed-off-by: Swaraj Kumar --- 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