Use generated API interface for Swagger(2) 14/132814/2
authorlapentafd <francesco.lapenta@est.tech>
Tue, 20 Dec 2022 12:03:46 +0000 (12:03 +0000)
committerlapentafd <francesco.lapenta@est.tech>
Wed, 21 Dec 2022 10:41:25 +0000 (10:41 +0000)
commit80aa9814fe7d52b1c893ae36db8c4be103e53484
treecfe632bfd702e22965c4077a46e6ba0b63cb055d
parent2e012cd81b39424ab691f5bacbd80eb56f20add6
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>
main/pom.xml
main/src/main/java/org/onap/policy/api/main/rest/ApiRestController.java
main/src/main/resources/openapi/openapi.yaml
main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java
main/src/test/java/org/onap/policy/api/main/rest/utils/CommonTestRestController.java