summaryrefslogtreecommitdiffstats
path: root/controlloop/common/feature-controlloop-trans/pom.xml
diff options
context:
space:
mode:
authorlapentafd <francesco.lapenta@est.tech>2023-02-13 13:59:45 +0000
committerFrancesco Davide Lapenta <francesco.lapenta@est.tech>2023-02-13 14:04:58 +0000
commit44dd8296a49937e347f6c2304bcaa09e3a67e3cc (patch)
treec8009f1a989ee9bb01c1b0a73f103474ed27c316 /controlloop/common/feature-controlloop-trans/pom.xml
parent70ddcbe8e34eda99a7e6e9f383cc78a0d6f0cbd2 (diff)
Clean Annotations drools-applications
Added swagger extracted documentation in openapi.yaml Issue-ID: POLICY-3465 Change-Id: Icb30dea789559b0de379ce0e5d8da3e8d9a5dac5 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
Diffstat (limited to 'controlloop/common/feature-controlloop-trans/pom.xml')
-rw-r--r--controlloop/common/feature-controlloop-trans/pom.xml38
1 files changed, 37 insertions, 1 deletions
diff --git a/controlloop/common/feature-controlloop-trans/pom.xml b/controlloop/common/feature-controlloop-trans/pom.xml
index fa59c3061..6346ec197 100644
--- a/controlloop/common/feature-controlloop-trans/pom.xml
+++ b/controlloop/common/feature-controlloop-trans/pom.xml
@@ -80,9 +80,45 @@
</execution>
</executions>
</plugin>
+ <!-- Controllers interfaces generation -->
+ <plugin>
+ <groupId>io.swagger.codegen.v3</groupId>
+ <artifactId>swagger-codegen-maven-plugin</artifactId>
+ <version>3.0.36</version>
+ <executions>
+ <execution>
+ <id>code-gen</id>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+ <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
+ <invokerPackage>org.onap.policy.drools.server.restful</invokerPackage>
+ <modelPackage>org.onap.policy.drools.server.restful.model</modelPackage>
+ <apiPackage>org.onap.policy.drools.server.restful</apiPackage>
+ <language>jaxrs-spec</language>
+ <generateModels>false</generateModels>
+ <generateSupportingFiles>false</generateSupportingFiles>
+ <sortParamsByRequiredFlag>false</sortParamsByRequiredFlag>
+ <importMappings>
+ Response=javax.ws.rs.core.Response
+ </importMappings>
+ <typeMappings>
+ <typeMapping>Integer=int</typeMapping>
+ <typeMapping>Long=long</typeMapping>
+ </typeMappings>
+ <configOptions>
+ <useTags>true</useTags>
+ <sourceFolder>src/gen/java</sourceFolder>
+ <dateLibrary>java11</dateLibrary>
+ <interfaceOnly>true</interfaceOnly>
+ </configOptions>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
-
<dependencies>
<dependency>
<groupId>org.onap.policy.models.policy-models-interactions.model-impl</groupId>