added no implemented and does not exist response for REST
diff --git a/src/main/java/org.onosproject.xran/rest/CellWebResource.java b/src/main/java/org.onosproject.xran/rest/CellWebResource.java
index ac2806d..d792fa6 100644
--- a/src/main/java/org.onosproject.xran/rest/CellWebResource.java
+++ b/src/main/java/org.onosproject.xran/rest/CellWebResource.java
@@ -138,6 +138,14 @@
);
}
}
+
+ return ResponseHelper.getResponse(
+ mapper(),
+ ResponseHelper.statusCode.NOT_IMPLEMENTED,
+ "Not Implemented",
+ "The command you specified is not implemented or doesn't exist. We support " +
+ "RRMConf commands."
+ );
} catch (Exception e) {
String fullStackTrace = ExceptionUtils.getFullStackTrace(e);
log.error(fullStackTrace);
diff --git a/src/main/java/org.onosproject.xran/rest/LinkWebResource.java b/src/main/java/org.onosproject.xran/rest/LinkWebResource.java
index 4d8dc11..4deb543 100644
--- a/src/main/java/org.onosproject.xran/rest/LinkWebResource.java
+++ b/src/main/java/org.onosproject.xran/rest/LinkWebResource.java
@@ -150,6 +150,14 @@
return handleRRMChange(link, rrmConf);
}
+ return ResponseHelper.getResponse(
+ mapper(),
+ ResponseHelper.statusCode.NOT_IMPLEMENTED,
+ "Not Implemented",
+ "The command you specified is not implemented or doesn't exist. We support " +
+ "type/RRMConf/traficpercent commands."
+ );
+
} catch (Exception e) {
String fullStackTrace = ExceptionUtils.getFullStackTrace(e);
log.error(fullStackTrace);
@@ -254,7 +262,8 @@
mapper(),
ResponseHelper.statusCode.NOT_IMPLEMENTED,
"Not Implemented",
- "This request is not implemented"
+ "The command you specified is not implemented or doesn't exist. We support " +
+ "type/RRMConf/traficpercent commands."
);
}