RESTful API doc generation with swagger-codegen-maven-plugin

Former-commit-id: ae5a9d80aa
restapi
Jens Pelzetter 2020-07-27 17:52:16 +02:00
parent 816c0649b9
commit ea04e3ba19
2 changed files with 25 additions and 2 deletions

View File

@ -442,6 +442,24 @@
</executions>
</plugin>
<plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<executions>
<execution>
<id>gen-api-doc</id>
<goals>
<goal>generate</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
<inputSpec>${project.build.directory}/generated-resources/openapi/ccm-core-api.json</inputSpec>
<language>html</language>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

View File

@ -330,16 +330,21 @@
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.3</version>
</plugin>
<plugin>
<!-- <plugin>
<groupId>io.openapitools.swagger</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<version>2.1.2</version>
</plugin>
</plugin>-->
<plugin>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<version>2.1.3</version>
</plugin>
<plugin>
<groupId>io.swagger.codegen.v3</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>3.0.20</version>
</plugin>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>