Skip to content

Commit

Permalink
[fix][broker] update rest endpoint method names to avoid swagger conf…
Browse files Browse the repository at this point in the history
…lict (#20359)

Signed-off-by: Paul Gier <paul.gier@datastax.com>
  • Loading branch information
pgier authored May 20, 2023
1 parent 1e664b7 commit eae4bd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2519,7 +2519,7 @@ public void getMaxTopicsPerNamespace(@Suspended final AsyncResponse asyncRespons
@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) {
Expand All @@ -2529,10 +2529,10 @@ public void setInactiveTopicPolicies(@PathParam("tenant") String tenant,

@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();
Expand Down
33 changes: 0 additions & 33 deletions src/gen-swagger.sh

This file was deleted.

0 comments on commit eae4bd0

Please sign in to comment.