Swagger file:upload model for mme 61/13661/1
authorSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 06:14:00 +0000 (11:44 +0530)
committerSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 06:14:00 +0000 (11:44 +0530)
Change-Id: I865a77dc64adf149c6b987f1a3f06aca0d8fd965
Signed-off-by: Swaraj Kumar <swaraj.kumar@samsung.com>
API_docs/mme.yaml

index dcc766f..a3c8a10 100644 (file)
@@ -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