From: subhash kumar singh Date: Mon, 7 Oct 2024 19:10:44 +0000 (+0000) Subject: Samle collection for request client X-Git-Tag: 4.0.0~37^2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=28b9c4fca0a3f56ed8245cdf6b547a0be61d3c36;p=aiml-fw%2Fawmf%2Fmodelmgmtservice.git Samle collection for request client Collected different samples for requestclient to use for API interaction. Change-Id: I63a45a4ad567bc15817e8fb5a36d62d2addf5f49 Signed-off-by: subhash kumar singh --- diff --git a/request.http b/request.http new file mode 100644 index 0000000..e1ace5c --- /dev/null +++ b/request.http @@ -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