Skip to content

Commit bae28f9

Browse files
authored
[fix] [doc] fix multiple apis in the automatically generated documentation use the same anchor point (apache#19193)
Generate operationId using the specified rule `{className}_{methodName}` of swagger.
1 parent 42a65aa commit bae28f9

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

pulsar-broker/pom.xml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,11 +697,13 @@
697697
<plugin>
698698
<groupId>com.github.kongchen</groupId>
699699
<artifactId>swagger-maven-plugin</artifactId>
700-
<version>3.1.7</version>
700+
<version>3.1.8</version>
701701
<configuration>
702702
<apiSources>
703703
<apiSource>
704704
<springmvc>false</springmvc>
705+
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
706+
<outputFormats>json</outputFormats>
705707
<locations>
706708
<location>org.apache.pulsar.broker.admin.v2.Bookies</location>
707709
<location>org.apache.pulsar.broker.admin.v2.BrokerStats</location>
@@ -737,6 +739,8 @@
737739
</apiSource>
738740
<apiSource>
739741
<springmvc>false</springmvc>
742+
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
743+
<outputFormats>json</outputFormats>
740744
<locations>org.apache.pulsar.broker.lookup.v2</locations>
741745
<schemes>http,https</schemes>
742746
<basePath>/lookup</basePath>
@@ -754,6 +758,8 @@
754758
</apiSource>
755759
<apiSource>
756760
<springmvc>false</springmvc>
761+
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
762+
<outputFormats>json</outputFormats>
757763
<locations>org.apache.pulsar.broker.admin.v3.Functions</locations>
758764
<schemes>http,https</schemes>
759765
<basePath>/admin/v3</basePath>
@@ -771,6 +777,8 @@
771777
</apiSource>
772778
<apiSource>
773779
<springmvc>false</springmvc>
780+
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
781+
<outputFormats>json</outputFormats>
774782
<locations>org.apache.pulsar.broker.admin.v3.Transactions</locations>
775783
<schemes>http,https</schemes>
776784
<basePath>/admin/v3</basePath>
@@ -788,6 +796,8 @@
788796
</apiSource>
789797
<apiSource>
790798
<springmvc>false</springmvc>
799+
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
800+
<outputFormats>json</outputFormats>
791801
<locations>org.apache.pulsar.broker.admin.v3.Sources</locations>
792802
<schemes>http,https</schemes>
793803
<basePath>/admin/v3</basePath>
@@ -805,6 +815,8 @@
805815
</apiSource>
806816
<apiSource>
807817
<springmvc>false</springmvc>
818+
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
819+
<outputFormats>json</outputFormats>
808820
<locations>org.apache.pulsar.broker.admin.v3.Sinks</locations>
809821
<schemes>http,https</schemes>
810822
<basePath>/admin/v3</basePath>
@@ -822,6 +834,8 @@
822834
</apiSource>
823835
<apiSource>
824836
<springmvc>false</springmvc>
837+
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
838+
<outputFormats>json</outputFormats>
825839
<locations>org.apache.pulsar.broker.admin.v3.Packages</locations>
826840
<schemes>http,https</schemes>
827841
<basePath>/admin/v3</basePath>

0 commit comments

Comments
 (0)