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/26 02:07:07 UTC

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

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

 ##########
 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:
   Following other method in this file, if parameter not right, and caused not able to find the function, return 400. If the key not exist, return 404.

----------------------------------------------------------------
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