add logs for unimplemented endpoints

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
Abhishek Kumar 2026-04-08 15:13:48 +05:30
parent 1ddccaa767
commit f118fc2f81
1 changed files with 3 additions and 0 deletions

View File

@ -165,11 +165,13 @@ public class DisksRouteHandler extends ManagerBase implements RouteHandler {
protected void handlePutById(final String id, final HttpServletRequest req, final HttpServletResponse resp,
final Negotiation.OutFormat outFormat, final VeeamControlServlet io) throws IOException {
String data = RouteHandler.getRequestData(req, logger);
throw new InvalidParameterValueException("Put Disk with ID " + id + " not implemented");
}
protected void handlePostDiskCopy(final String id, final HttpServletRequest req, final HttpServletResponse resp,
final Negotiation.OutFormat outFormat, final VeeamControlServlet io) throws IOException {
String data = RouteHandler.getRequestData(req, logger);
try {
Disk response = serverAdapter.copyDisk(id);
io.getWriter().write(resp, HttpServletResponse.SC_OK, response, outFormat);
@ -180,6 +182,7 @@ public class DisksRouteHandler extends ManagerBase implements RouteHandler {
protected void handlePostDiskReduce(final String id, final HttpServletRequest req, final HttpServletResponse resp,
final Negotiation.OutFormat outFormat, final VeeamControlServlet io) throws IOException {
String data = RouteHandler.getRequestData(req, logger);
try {
Disk response = serverAdapter.reduceDisk(id);
io.getWriter().write(resp, HttpServletResponse.SC_OK, response, outFormat);