This is an automated email from the ASF dual-hosted git repository.
zixuan 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 eae4bd069e3 [fix][broker] update rest endpoint method names to avoid
swagger conflict (#20359)
eae4bd069e3 is described below
commit eae4bd069e3af60c2a8815453dc057c768dce4a9
Author: Paul Gier <[email protected]>
AuthorDate: Sat May 20 11:34:07 2023 -0500
[fix][broker] update rest endpoint method names to avoid swagger conflict
(#20359)
Signed-off-by: Paul Gier <[email protected]>
---
.../apache/pulsar/broker/admin/v2/Namespaces.java | 6 ++--
src/gen-swagger.sh | 33 ----------------------
2 files changed, 3 insertions(+), 36 deletions(-)
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 55766c173f7..b4f1194f92f 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
@@ -2519,7 +2519,7 @@ public class Namespaces extends NamespacesBase {
@ApiOperation(value = "Set maxTopicsPerNamespace config on a namespace.")
@ApiResponses(value = { @ApiResponse(code = 403, message = "Don't have
admin permission"),
@ApiResponse(code = 404, message = "Tenant or namespace doesn't
exist"), })
- public void setInactiveTopicPolicies(@PathParam("tenant") String tenant,
+ public void setMaxTopicsPerNamespace(@PathParam("tenant") String tenant,
@PathParam("namespace") String
namespace,
@ApiParam(value = "Number of maximum
topics for specific namespace",
required = true) int
maxTopicsPerNamespace) {
@@ -2529,10 +2529,10 @@ public class Namespaces extends NamespacesBase {
@DELETE
@Path("/{tenant}/{namespace}/maxTopicsPerNamespace")
- @ApiOperation(value = "Set maxTopicsPerNamespace config on a namespace.")
+ @ApiOperation(value = "Remove maxTopicsPerNamespace config on a
namespace.")
@ApiResponses(value = { @ApiResponse(code = 403, message = "Don't have
admin permission"),
@ApiResponse(code = 404, message = "Tenant or namespace doesn't
exist"), })
- public void setInactiveTopicPolicies(@PathParam("tenant") String tenant,
+ public void removeMaxTopicsPerNamespace(@PathParam("tenant") String tenant,
@PathParam("namespace") String
namespace) {
validateNamespaceName(tenant, namespace);
internalRemoveMaxTopicsPerNamespace();
diff --git a/src/gen-swagger.sh b/src/gen-swagger.sh
deleted file mode 100755
index 6402dca2614..00000000000
--- a/src/gen-swagger.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-PULSAR_PATH=$(git rev-parse --show-toplevel)
-
-cd $PULSAR_PATH
-
-echo "Generating swagger json file for master ..."
-mvn -am -pl pulsar-broker install -DskipTests -Pswagger
-echo "Swagger json file is generated for master."
-
-mkdir -p site2/website/static/swagger/master/
-
-cp pulsar-broker/target/docs/swagger*.json site2/website/static/swagger/master/
-echo "Copied swagger json file for master."
-