jaykay12 commented on code in PR #4452:
URL: https://github.com/apache/solr/pull/4452#discussion_r3321858127
##########
solr/api/src/java/org/apache/solr/client/api/endpoint/TasksApi.java:
##########
@@ -27,23 +27,26 @@
import org.apache.solr.client.api.model.TaskStatusResponse;
import org.apache.solr.client.api.util.StoreApiParameters;
-@Path(INDEX_PATH_PREFIX + "/tasks/list")
-public interface ListActiveTasksApi {
+@Path(INDEX_PATH_PREFIX)
+public interface TasksApi {
- // Handles: .../tasks/list (Lists all)
- @GET
- @StoreApiParameters
- @Operation(
- summary = "Lists all the currently running tasks",
- tags = {"tasks"})
- ListActiveTaskResponse listAllActiveTasks() throws Exception;
+ @Path("/tasks")
+ interface List {
+ @GET
+ @StoreApiParameters
+ @Operation(
+ summary = "Lists all the currently running active tasks.",
+ tags = {"tasks"})
+ ListActiveTaskResponse listAllActiveTasks() throws Exception;
+ }
- // Handles: .../tasks/list/slow-task-id (Lists specific)
- @GET
- @Path("/{taskUUID}")
- @StoreApiParameters
- @Operation(
- summary = "Status of a specific taskUUID passed as pathParam",
- tags = {"tasks"})
- TaskStatusResponse getTaskStatus(@PathParam("taskUUID") String taskUUID)
throws Exception;
+ @Path("/tasks/{taskID}")
+ interface Status {
+ @GET
+ @StoreApiParameters
+ @Operation(
+ summary = "Status of a specific taskID passed as pathParam.",
Review Comment:
understood, have corrected this now.
--
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]