Generate separate swagger docs for separate services
<configuration>
<apiSources>
<apiSource>
+
<schemes>
<scheme>http</scheme>
<scheme>https</scheme>
<basePath>/</basePath>
<springmvc>false</springmvc>
<info>
+
<title>Tessera rest</title>
<version>${project.version}</version>
</info>
<locations>
- <location>com.quorum.tessera</location>
+ <location>com.quorum.tessera.api.common</location>
+ <location>com.quorum.tessera.q2t</location>
</locations>
<templatePath>${basedir}/src/main/swagger/strapdown.html.hbs</templatePath>
<outputPath>${project.build.directory}/generated-resources/swagger/swagger.html</outputPath>
<swaggerDirectory>${project.build.directory}/generated-resources/swagger</swaggerDirectory>
+ <swaggerFileName>swagger</swaggerFileName>
+ </apiSource>
+
+
+ <apiSource>
+
+ <schemes>
+ <scheme>http</scheme>
+ <scheme>https</scheme>
+ </schemes>
+ <host>localhost:8080</host>
+ <basePath>/</basePath>
+ <springmvc>false</springmvc>
+ <info>
+
+ <title>Admin config resource</title>
+ <version>${project.version}</version>
+ </info>
+
+ <locations>
+ <location>com.quorum.tessera.p2p.ConfigResource</location>
+
+ </locations>
+ <templatePath>${basedir}/src/main/swagger/strapdown.html.hbs</templatePath>
+ <outputPath>${project.build.directory}/generated-resources/swagger/admin.html</outputPath>
+ <swaggerDirectory>${project.build.directory}/generated-resources/swagger</swaggerDirectory>
+ <swaggerFileName>admin</swaggerFileName>
</apiSource>
+
+ <apiSource>
+
+ <schemes>
+ <scheme>http</scheme>
+ <scheme>https</scheme>
+ </schemes>
+ <host>localhost:8080</host>
+ <basePath>/</basePath>
+ <springmvc>false</springmvc>
+ <info>
+
+ <title>Peer to peer resources</title>
+ <version>${project.version}</version>
+ </info>
+
+ <locations>
+ <location>com.quorum.tessera.p2p.ApiResource</location>
+ <location>com.quorum.tessera.p2p.PartyInfoResource</location>
+ <location>com.quorum.tessera.p2p.TransactionResource</location>
+
+ </locations>
+ <templatePath>${basedir}/src/main/swagger/strapdown.html.hbs</templatePath>
+ <outputPath>${project.build.directory}/generated-resources/swagger/p2p.html</outputPath>
+ <swaggerDirectory>${project.build.directory}/generated-resources/swagger</swaggerDirectory>
+ <swaggerFileName>p2p</swaggerFileName>
+ </apiSource>
+
+ <apiSource>
+
+ <schemes>
+ <scheme>http</scheme>
+ <scheme>https</scheme>
+ </schemes>
+ <host>localhost:8080</host>
+ <basePath>/</basePath>
+ <springmvc>false</springmvc>
+ <info>
+
+ <title>Third party resources</title>
+ <version>${project.version}</version>
+ </info>
+
+ <locations>
+ <location>com.quorum.tessera.thridparty</location>
+
+ </locations>
+ <templatePath>${basedir}/src/main/swagger/strapdown.html.hbs</templatePath>
+ <outputPath>${project.build.directory}/generated-resources/swagger/thirdpty.html</outputPath>
+ <swaggerDirectory>${project.build.directory}/generated-resources/swagger</swaggerDirectory>
+ <swaggerFileName>thirdpty</swaggerFileName>
+ </apiSource>
+
</apiSources>
</configuration>
