summaryrefslogtreecommitdiffstats
path: root/main/pom.xml
diff options
context:
space:
mode:
authorlapentafd <francesco.lapenta@est.tech>2022-12-20 12:03:46 +0000
committerlapentafd <francesco.lapenta@est.tech>2022-12-21 10:41:25 +0000
commit80aa9814fe7d52b1c893ae36db8c4be103e53484 (patch)
treecfe632bfd702e22965c4077a46e6ba0b63cb055d /main/pom.xml
parent2e012cd81b39424ab691f5bacbd80eb56f20add6 (diff)
Use generated API interface for Swagger(2)
This commit removes the Swagger V2 annotations on the ApiRestController in policy-api. The OpeApi annotations (Swagger v3 annotations) are on a generated Java Interface. The code is changed so that the controller implements that interface. There are no code changes tot he controller except that the order of the parameters is switched in some cases. Adds unit test for SpingDoc swagger document generator endpoint. Issue-ID: POLICY-4404 Change-Id: Ic8976362481a0b49ad05cebb2f4f9ce4147f3965 Signed-off-by: lapentafd <francesco.lapenta@est.tech>
Diffstat (limited to 'main/pom.xml')
-rw-r--r--main/pom.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/pom.xml b/main/pom.xml
index 34765405..aed73eaa 100644
--- a/main/pom.xml
+++ b/main/pom.xml
@@ -152,6 +152,7 @@
ToscaNodeTemplateArray=java.util.List,
HealthCheckReport=org.onap.policy.common.endpoints.report.HealthCheckReport,
StatisticsReport=org.onap.policy.api.main.rest.provider.statistics.StatisticsReport,
+ PolicyFetchMode=org.onap.policy.api.main.rest.PolicyFetchMode
</importMappings>
<configOptions>
<sourceFolder>src/gen/java</sourceFolder>