Use generated PAP interface for Swagger 04/132904/4
authorlapentafd <francesco.lapenta@est.tech>
Mon, 9 Jan 2023 15:16:54 +0000 (15:16 +0000)
committerlapentafd <francesco.lapenta@est.tech>
Tue, 17 Jan 2023 09:15:20 +0000 (09:15 +0000)
commit09191f108632a46862ea7c60023ea5d012a81823
tree80ce5cbf4fc64e69c13b6107712298472cc10b07
parent7c48007486d0d1ee47a5eea81135e49737677155
Use generated PAP interface for Swagger

This commit removes the Swagger V2 annotations on the
Rest Controllers in policy-pap. 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 minimal code changes to the controller and the order of the
parameters is switched in some cases.

Issue-ID: POLICY-4404
Change-Id: I060709806a8e5bc04d9873c8d212a5c9fe13c4d4
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
18 files changed:
main/pom.xml
main/src/main/java/org/onap/policy/pap/main/rest/HealthCheckRestControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/PapRestControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupCreateOrUpdateControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeleteControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupDeployControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupHealthCheckControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupQueryControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/PdpGroupStateChangeControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/PolicyAuditControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/PolicyComponentsHealthCheckControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/PolicyStatusControllerV1.java
main/src/main/java/org/onap/policy/pap/main/rest/StatisticsRestControllerV1.java
main/src/main/resources/application.yaml
main/src/main/resources/openapi/openapi.yaml
main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java
main/src/test/resources/application-test-e2e.yaml
main/src/test/resources/application-test.yaml