Updating Header as per new API-root change 02/14002/1
authorashishj1729 <jain.ashish@samsung.com>
Wed, 8 Jan 2025 11:53:12 +0000 (17:23 +0530)
committersubhash kumar singh <subh.singh@samsung.com>
Wed, 8 Jan 2025 19:07:23 +0000 (19:07 +0000)
Change-Id: I367e7ed39fed5d68a0b4f15477ea2bf396a1fb35
Signed-off-by: ashishj1729 <jain.ashish@samsung.com>
(cherry picked from commit 874d2370b942d84705375b0184f26cda2a394c36)

apis/mmes_apis.go

index 36349dc..d599dcf 100644 (file)
@@ -83,7 +83,7 @@ func (m *MmeApiHandler) RegisterModel(cont *gin.Context) {
        }
 
        logging.INFO("model is saved.")
-       cont.Header("Location", "/model-registrations/"+id.String())
+       cont.Header("Location", "ai-ml-model-registration/v1/model-registrations/"+id.String())
        cont.JSON(http.StatusCreated, gin.H{
                "modelInfo": modelInfo,
        })