Updating request.http for latest Download & Upload-Model APIs 98/14498/4
authorAshish Jain <jain.ashish@samsung.com>
Fri, 23 May 2025 06:38:34 +0000 (06:38 +0000)
committerAshish Jain <jain.ashish@samsung.com>
Fri, 23 May 2025 11:20:30 +0000 (11:20 +0000)
Issue-id: AIMLFW-208
Change-Id: I271c80e67aefd7965ff563be2c4f8030679cb1b3
Signed-off-by: ashishj1729 <jain.ashish@samsung.com>
request.http

index 9b3bddc..01878d2 100644 (file)
@@ -61,3 +61,19 @@ Content-Type: application/json
 
 ### delete model info by ID
 DELETE http://{{host}}/model-registrations/a43d1a80-e1c5-4d87-b90f-729736bdd89f
+
+
+### Upload model using multipart/form-data
+### Before Uploading, Make sure you have a "Model.zip" file in the current directory
+POST http://{{host}}/ai-ml-model-registration/v1/uploadModel/testmodel/1/1.0.0
+Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
+
+------WebKitFormBoundary7MA4YWxkTrZu0gW
+Content-Disposition: form-data; name="file"; filename="Model.zip"
+Content-Type: application/zip
+
+< ./Model.zip
+------WebKitFormBoundary7MA4YWxkTrZu0gW--
+
+### Download model
+GET http://{{host}}/ai-ml-model-registration/v1/downloadModel/testmodel/1/1.0.0/model.zip
\ No newline at end of file