From 1334ccc9d82f971f47409d9a8387e48695aa7b1b Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 06:13:29 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20docstrings=20to=20`test2`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docstrings generation was requested by @SnailJie. * https://github.com/SnailJie/ZstackWithComments/pull/3#issuecomment-2933620367 The following files were modified: * `rest/src/main/java/org/zstack/rest/RestServerController.java` --- .../java/org/zstack/rest/RestServerController.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rest/src/main/java/org/zstack/rest/RestServerController.java b/rest/src/main/java/org/zstack/rest/RestServerController.java index 6e8cbb7..b85b4d3 100644 --- a/rest/src/main/java/org/zstack/rest/RestServerController.java +++ b/rest/src/main/java/org/zstack/rest/RestServerController.java @@ -20,6 +20,18 @@ public class RestServerController { @Autowired private RestServer server; + /**** + * Handles all REST API requests and delegates processing to the RestServer. + * + * Sets a request attribute "info" containing a test map before forwarding the request and response to the RestServer for handling. + * + * @param request the incoming HTTP request + * @param response the HTTP response to be sent + * @throws IOException if an I/O error occurs during request handling + * @throws IllegalAccessException if the underlying method is inaccessible + * @throws NoSuchMethodException if a required method cannot be found + * @throws InvocationTargetException if the underlying method throws an exception + */ @RequestMapping( value = RestConstants.ALL_PATH, method = {