You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2022/06/14 22:35:10 UTC
[pulsar] branch master updated: Fix wrong response type for swagger definitions (#16022)
This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new a3c274142d2 Fix wrong response type for swagger definitions (#16022)
a3c274142d2 is described below
commit a3c274142d26d86def7eea33be534c96003790ca
Author: visortelle <vi...@gmail.com>
AuthorDate: Wed Jun 15 00:35:04 2022 +0200
Fix wrong response type for swagger definitions (#16022)
---
.../src/main/java/org/apache/pulsar/broker/admin/v2/Namespaces.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Namespaces.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Namespaces.java
index f55ebb66837..5e831eeaacd 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Namespaces.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/Namespaces.java
@@ -346,7 +346,7 @@ public class Namespaces extends NamespacesBase {
@GET
@Path("/{tenant}/{namespace}/messageTTL")
- @ApiOperation(value = "Get the message TTL for the namespace")
+ @ApiOperation(value = "Get the message TTL for the namespace", response = Integer.class)
@ApiResponses(value = { @ApiResponse(code = 403, message = "Don't have admin permission"),
@ApiResponse(code = 404, message = "Tenant or cluster or namespace doesn't exist") })
public void getNamespaceMessageTTL(@Suspended AsyncResponse asyncResponse, @PathParam("tenant") String tenant,