From 156c4c5e772b3b47c40d1a5b4fd77f3df74d9f31 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Mon, 9 Dec 2024 11:59:09 +0000 Subject: [PATCH] Example for model update Added example for model update. Change-Id: I5348a4bab9f0e65cec10b3c9c698d6a415789cd5 Signed-off-by: subhash kumar singh --- request.http | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/request.http b/request.http index 362217e..dc87c92 100644 --- a/request.http +++ b/request.http @@ -33,22 +33,27 @@ GET http://{{host}}/models?model-name=TestModel1&model-version=v1.0 Content-Type: application/json ### updated model -PUT http://{{host}}/modelInfo/12345 +PUT http://{{host}}/model-registrations/79a20274-35a6-4f97-a669-8b42b73f087f Content-Type: application/json { - "id": "12345", - "model-id": { - "modelName": "UpdatedModel", - "modelVersion": "v2.0" - }, - "description": "This is an updated model.", - "meta-info": { - "metadata": { - "author": "Jane Doe" - } + "id": "79a20274-35a6-4f97-a669-8b42b73f087f", + "modelId": { + "modelName": "TestModel1", + "modelVersion": "v1.0", + "artifactVersion": "1.0.0" + }, + "description": "This is a updated model.", + "modelInformation": { + "metadata": { + "author": "John Doe", + "owner": "" + }, + "inputDataType": "pdcp", + "outputDataType": "pdcp" + }, + "modelLocation": "" } -} ### delete modelinfo DELETE http://{{host}}/modelInfo/12345 \ No newline at end of file -- 2.16.6