Change-Id: Ib2d00ca778ff96d833f4e7c4823b82e36dd6a8e2
Signed-off-by: rajdeep11 <rajdeep.sin@samsung.com>
})
return
}
- //to check record not found
- if len(modelInfos)==0{
- statusCode := http.StatusNotFound
- errMessage := fmt.Sprintf("Record not found with modelName: %s", modelName)
- logging.ERROR("Record not found, send status code: ", statusCode)
- cont.JSON(statusCode, gin.H{
- "code": statusCode,
- "message": errMessage,
- })
- return
- }
cont.JSON(http.StatusOK, gin.H{
"modelinfoList":modelInfos,