Swagger file: register model for mme 58/13658/1
authorSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 06:09:34 +0000 (11:39 +0530)
committerSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 06:09:34 +0000 (11:39 +0530)
Change-Id: I63df68337fa149f1b7073a2950165f6b95513738
Signed-off-by: Swaraj Kumar <swaraj.kumar@samsung.com>
API_docs/mme.yaml

index 99ebc7b..fc9ec58 100644 (file)
@@ -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