You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/09/25 17:47:22 UTC

[GitHub] sijie commented on a change in pull request #2653: WIP: Access function state by rest endpoint

sijie commented on a change in pull request #2653: WIP: Access function state by rest endpoint
URL: https://github.com/apache/pulsar/pull/2653#discussion_r220244588
 
 

 ##########
 File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/FunctionsBase.java
 ##########
 @@ -223,6 +223,25 @@ public Response triggerFunction(final @PathParam("tenant") String tenant,
 
     }
 
+    @GET
+    @ApiOperation(
+        value = "Fetch the current state associated with a Pulsar Function",
+        response = String.class
+    )
+    @ApiResponses(value = {
+        @ApiResponse(code = 400, message = "Invalid request"),
 
 Review comment:
   it should return 404 if the function doesn't exist, right?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services