Skip to content

Commit

Permalink
[fix] [doc] fix multiple apis in the automatically generated document…
Browse files Browse the repository at this point in the history
…ation use the same anchor point (#19193)

Generate operationId using the specified rule `{className}_{methodName}` of swagger.
  • Loading branch information
poorbarcode authored Mar 9, 2023
1 parent 42a65aa commit bae28f9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pulsar-broker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -697,11 +697,13 @@
<plugin>
<groupId>com.github.kongchen</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<version>3.1.7</version>
<version>3.1.8</version>
<configuration>
<apiSources>
<apiSource>
<springmvc>false</springmvc>
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
<outputFormats>json</outputFormats>
<locations>
<location>org.apache.pulsar.broker.admin.v2.Bookies</location>
<location>org.apache.pulsar.broker.admin.v2.BrokerStats</location>
Expand Down Expand Up @@ -737,6 +739,8 @@
</apiSource>
<apiSource>
<springmvc>false</springmvc>
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
<outputFormats>json</outputFormats>
<locations>org.apache.pulsar.broker.lookup.v2</locations>
<schemes>http,https</schemes>
<basePath>/lookup</basePath>
Expand All @@ -754,6 +758,8 @@
</apiSource>
<apiSource>
<springmvc>false</springmvc>
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
<outputFormats>json</outputFormats>
<locations>org.apache.pulsar.broker.admin.v3.Functions</locations>
<schemes>http,https</schemes>
<basePath>/admin/v3</basePath>
Expand All @@ -771,6 +777,8 @@
</apiSource>
<apiSource>
<springmvc>false</springmvc>
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
<outputFormats>json</outputFormats>
<locations>org.apache.pulsar.broker.admin.v3.Transactions</locations>
<schemes>http,https</schemes>
<basePath>/admin/v3</basePath>
Expand All @@ -788,6 +796,8 @@
</apiSource>
<apiSource>
<springmvc>false</springmvc>
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
<outputFormats>json</outputFormats>
<locations>org.apache.pulsar.broker.admin.v3.Sources</locations>
<schemes>http,https</schemes>
<basePath>/admin/v3</basePath>
Expand All @@ -805,6 +815,8 @@
</apiSource>
<apiSource>
<springmvc>false</springmvc>
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
<outputFormats>json</outputFormats>
<locations>org.apache.pulsar.broker.admin.v3.Sinks</locations>
<schemes>http,https</schemes>
<basePath>/admin/v3</basePath>
Expand All @@ -822,6 +834,8 @@
</apiSource>
<apiSource>
<springmvc>false</springmvc>
<operationIdFormat>{{className}}_{{methodName}}</operationIdFormat>
<outputFormats>json</outputFormats>
<locations>org.apache.pulsar.broker.admin.v3.Packages</locations>
<schemes>http,https</schemes>
<basePath>/admin/v3</basePath>
Expand Down

0 comments on commit bae28f9

Please sign in to comment.