summaryrefslogtreecommitdiffstats
path: root/feature-healthcheck/pom.xml
diff options
context:
space:
mode:
authorlapentafd <francesco.lapenta@est.tech>2023-02-07 15:48:03 +0000
committerFrancesco Davide Lapenta <francesco.lapenta@est.tech>2023-02-10 15:07:04 +0000
commit0a07999ae3b27154249de5744c4b20fbb627dcdb (patch)
tree647b58bf7d6fa718a0bdeb993006c05f0f2d7e0d /feature-healthcheck/pom.xml
parent62e8960e2969f24c7f7bfca5c696b8975ec8e81d (diff)
Removing Drools-pdp swagger annotations
Added swagger extracted documentation in openapi.yaml for lifecycle, legacy, management and healthcheck. Added new endpoint to retrieve the generated swagger.json Modified endpoint in telemetry tool Issue-ID: POLICY-3465 Change-Id: I003aaf128b1a4991ffe6b79f0659d1bd0137b52d Signed-off-by: lapentafd <francesco.lapenta@est.tech>
Diffstat (limited to 'feature-healthcheck/pom.xml')
-rw-r--r--feature-healthcheck/pom.xml43
1 files changed, 43 insertions, 0 deletions
diff --git a/feature-healthcheck/pom.xml b/feature-healthcheck/pom.xml
index 7c9efa1d..669f5ba2 100644
--- a/feature-healthcheck/pom.xml
+++ b/feature-healthcheck/pom.xml
@@ -80,6 +80,43 @@
</execution>
</executions>
</plugin>
+ <!-- Controllers interfaces generation -->
+ <plugin>
+ <groupId>io.swagger.codegen.v3</groupId>
+ <artifactId>swagger-codegen-maven-plugin</artifactId>
+ <version>3.0.27</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.healthcheck</invokerPackage>
+ <modelPackage>org.onap.policy.drools.healthcheck.model</modelPackage>
+ <apiPackage>org.onap.policy.drools.healthcheck</apiPackage>
+ <language>jaxrs-spec</language>
+ <generateModels>false</generateModels>
+ <generateSupportingFiles>false</generateSupportingFiles>
+ <sortParamsByRequiredFlag>false</sortParamsByRequiredFlag>
+ <importMappings>
+ Response=javax.ws.rs.core.Response
+ </importMappings>
+ <typeMappings>
+ <typeMapping>boolean=boolean</typeMapping>
+ </typeMappings>
+ <configOptions>
+ <sourceFolder>src/gen/java</sourceFolder>
+ <dateLibrary>java11</dateLibrary>
+ <interfaceOnly>true</interfaceOnly>
+ <useTags>true</useTags>
+ <skipIfSpecIsUnchanged>false</skipIfSpecIsUnchanged>
+ </configOptions>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
@@ -117,6 +154,12 @@
<artifactId>awaitility</artifactId>
<scope>test</scope>
</dependency>
+ <!-- Swagger v3 annotations -->
+ <dependency>
+ <groupId>io.swagger.core.v3</groupId>
+ <artifactId>swagger-annotations</artifactId>
+ <version>${version.swagger.core.v3}</version>
+ </dependency>
</dependencies>
</project>