From b6f81ec85330ff81d773f648e52b10b6aa29bdb7 Mon Sep 17 00:00:00 2001 From: Ashish Jain Date: Fri, 23 May 2025 06:38:34 +0000 Subject: [PATCH] Updating request.http for latest Download & Upload-Model APIs Issue-id: AIMLFW-208 Change-Id: I271c80e67aefd7965ff563be2c4f8030679cb1b3 Signed-off-by: ashishj1729 --- request.http | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/request.http b/request.http index 9b3bddc..01878d2 100644 --- a/request.http +++ b/request.http @@ -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 -- 2.16.6