Swagger file:model info with id for mme 60/13660/1
authorSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 06:12:40 +0000 (11:42 +0530)
committerSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 06:12:40 +0000 (11:42 +0530)
Change-Id: Ifa44323e99327890e568bdde60c751562b413e07
Signed-off-by: Swaraj Kumar <swaraj.kumar@samsung.com>
API_docs/mme.yaml

index 2c34ebf..dcc766f 100644 (file)
@@ -69,3 +69,68 @@ paths:
           description: Invalid query parameters
         '500':
           description: Internal Server Error
+  /modelInfo/{id}:
+    get:
+      tags:
+        - Model Management
+      summary: Get model info by ID
+      operationId: getModelInfoById
+      parameters:
+        - name: id
+          in: path
+          required: true
+          schema:
+            type: string
+      responses:
+        '200':
+          description: Model information
+          content:
+            application/json:
+              schema:
+                $ref: '#/components/schemas/ModelInfo'
+        '404':
+          description: Model not found
+        '500':
+          description: Internal Server Error
+
+    put:
+      tags:
+        - Model Management
+      summary: Update model info by ID
+      operationId: updateModel
+      parameters:
+        - name: id
+          in: path
+          required: true
+          schema:
+            type: string
+      requestBody:
+        required: true
+        content:
+          application/json:
+            schema:
+              $ref: '#/components/schemas/ModelInfo'
+      responses:
+        '200':
+          description: Model updated successfully
+        '400':
+          description: Invalid request body
+        '500':
+          description: Internal Server Error
+
+    delete:
+      tags:
+        - Model Management
+      summary: Delete a model by ID
+      operationId: deleteModel
+      parameters:
+        - name: id
+          in: path
+          required: true
+          schema:
+            type: string
+      responses:
+        '200':
+          description: Model deleted successfully
+        '500':
+          description: Internal Server Error