From be2e25665b4118bf107017b61c2ca9edfa567b46 Mon Sep 17 00:00:00 2001 From: Swaraj Kumar Date: Fri, 18 Oct 2024 11:39:34 +0530 Subject: [PATCH] Swagger file: register model for mme Change-Id: I63df68337fa149f1b7073a2950165f6b95513738 Signed-off-by: Swaraj Kumar --- API_docs/mme.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/API_docs/mme.yaml b/API_docs/mme.yaml index 99ebc7b..fc9ec58 100644 --- a/API_docs/mme.yaml +++ b/API_docs/mme.yaml @@ -10,4 +10,29 @@ servers: tags: - name: Model Management - description: Endpoints for managing models \ No newline at end of file + description: Endpoints for managing models + +paths: + /registerModel: + post: + tags: + - Model Management + summary: Register a new model + operationId: registerModel + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ModelInfo' + responses: + '200': + description: Model registered successfully and returned object + content: + application/json: + schema: + $ref: '#/components/schemas/ModelInfo' + '400': + description: Invalid request, bad input data + '500': + description: Internal Server Error -- 2.16.6