From 09191f108632a46862ea7c60023ea5d012a81823 Mon Sep 17 00:00:00 2001 From: lapentafd Date: Mon, 9 Jan 2023 15:16:54 +0000 Subject: 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 --- main/src/test/resources/application-test-e2e.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main/src/test/resources/application-test-e2e.yaml') diff --git a/main/src/test/resources/application-test-e2e.yaml b/main/src/test/resources/application-test-e2e.yaml index 2191a116..96ed124d 100644 --- a/main/src/test/resources/application-test-e2e.yaml +++ b/main/src/test/resources/application-test-e2e.yaml @@ -22,6 +22,8 @@ spring: implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy server: port: 6969 + servlet: + context-path: /policy/pap/v1 pap: name: "PapGroupE2E" -- cgit 1.2.3-korg