sijie commented on a change in pull request #4800: Add the schema admin api
URL: https://github.com/apache/pulsar/pull/4800#discussion_r307279482
 
 

 ##########
 File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/SchemasResource.java
 ##########
 @@ -156,6 +163,34 @@ public void getSchema(
             });
     }
 
+    @GET
+    @Path("/{tenant}/{namespace}/{topic}/schemas")
+    @Produces(MediaType.APPLICATION_JSON)
+    @ApiOperation(value = "Get the all schemas of a topic", response = 
GetAllVersionsSchemaResponse.class)
+    @ApiResponses(value = {
+            @ApiResponse(code = 307, message = "Current broker doesn't serve 
the namespace of this topic"),
+            @ApiResponse(code = 401, message = "Client is not authorized or 
Don't have admin permission"),
+            @ApiResponse(code = 403, message = "Client is not authenticated"),
+            @ApiResponse(code = 404, message = "Tenant or Namespace or Topic 
doesn't exist; or Schema is not found for this topic"),
+            @ApiResponse(code = 412, message = "Failed to find the ownership 
for the topic"),
 
 Review comment:
   does this method return 500?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to