Samle collection for request client 20/13520/2
authorsubhash kumar singh <subh.singh@samsung.com>
Mon, 7 Oct 2024 19:10:44 +0000 (19:10 +0000)
committersubhash kumar singh <subh.singh@samsung.com>
Tue, 8 Oct 2024 09:47:38 +0000 (09:47 +0000)
Collected different samples for requestclient to use for
API interaction.

Change-Id: I63a45a4ad567bc15817e8fb5a36d62d2addf5f49
Signed-off-by: subhash kumar singh <subh.singh@samsung.com>
request.http [new file with mode: 0644]

diff --git a/request.http b/request.http
new file mode 100644 (file)
index 0000000..e1ace5c
--- /dev/null
@@ -0,0 +1,44 @@
+@host = x.x.x.x:8082
+
+### registraton
+POST http://{{host}}/registerModel
+Content-Type: application/json
+
+{ 
+    "id": "12345", 
+    "model-id": { 
+        "modelName": "TestModel", 
+        "modelVersion": "v1.0" 
+    }, 
+    "description": "This is a test model.", 
+    "meta-info": { 
+        "metadata": { 
+            "author": "John Doe" 
+        } 
+    } 
+}
+
+### Get ModelInfo by ID
+GET http://{{host}}/getModelInfo
+Content-Type: application/json
+
+### updated model
+PUT http://{{host}}/modelInfo/12345
+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"
+    }
+  }
+}
+
+### delete modelinfo
+DELETE http://{{host}}/modelInfo/12345
\ No newline at end of file