jaykay12 commented on code in PR #4537:
URL: https://github.com/apache/solr/pull/4537#discussion_r3836302554


##########
solr/api/src/java/org/apache/solr/client/api/endpoint/TasksApi.java:
##########
@@ -30,18 +30,23 @@
 @Path(INDEX_PATH_PREFIX + "/tasks")
 public interface TasksApi {
 
-  @GET
-  @StoreApiParameters
-  @Operation(
-      summary = "Lists all the active tasks",
-      tags = {"tasks"})
-  ListActiveTaskResponse listAllActiveTasks() throws Exception;
+  @Path("")
+  interface List {
+    @GET
+    @StoreApiParameters
+    @Operation(
+        summary = "Lists all the active tasks.",
+        tags = {"tasks"})
+    ListActiveTaskResponse listAllActiveTasks() throws Exception;
+  }
 
-  @GET
   @Path("/{taskID}")
-  @StoreApiParameters
-  @Operation(
-      summary = "Status of a specific task",
-      tags = {"tasks"})
-  TaskStatusResponse getTaskStatus(@PathParam("taskID") String taskID) throws 
Exception;
+  interface Status {
+    @GET
+    @StoreApiParameters
+    @Operation(
+        summary = "Status of a specific task.",
+        tags = {"tasks"})
+    TaskStatusResponse getTaskStatus(@PathParam("taskID") String taskID) 
throws Exception;
+  }

Review Comment:
   thank you! 
   this was the miss why i couldn't do this way in the PR: 
https://github.com/apache/solr/pull/4452#issuecomment-4606416964 & was facing 
this issue. My V2 endpoints were not getting registered. 
   
   This got fixed with the Copilot suggestion.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to