From a4687d9a257e6d95cdca6182d5a012a149f5f716 Mon Sep 17 00:00:00 2001 From: "raviteja.karumuri" Date: Thu, 14 Sep 2023 12:38:49 +0100 Subject: OpenApi-First approach Issue-ID: CCSDK-3927 Signed-off-by: raviteja.karumuri Change-Id: Ie88b84cce42081f1becdf186813b2e557479297b Signed-off-by: raviteja.karumuri --- a1-policy-management/pom.xml | 103 +++++++++++++++++++++++++++---------------- 1 file changed, 65 insertions(+), 38 deletions(-) (limited to 'a1-policy-management/pom.xml') diff --git a/a1-policy-management/pom.xml b/a1-policy-management/pom.xml index 6b797526..2a24dbca 100644 --- a/a1-policy-management/pom.xml +++ b/a1-policy-management/pom.xml @@ -50,6 +50,26 @@ false + + javax.validation + validation-api + 2.0.1.Final + + + javax.annotation + javax.annotation-api + 1.3.2 + + + io.swagger.core.v3 + swagger-annotations + 2.2.15 + + + org.openapitools + jackson-databind-nullable + 0.2.4 + org.yaml @@ -60,10 +80,6 @@ org.springframework.boot spring-boot - - org.springframework - spring-beans - org.springframework spring-context @@ -72,22 +88,10 @@ org.springframework.boot spring-boot-autoconfigure - - org.springframework - spring-web - - - org.springframework - spring-webmvc - org.springframework.boot spring-boot-starter-webflux - - org.springframework - spring-webflux - javax.servlet @@ -154,17 +158,6 @@ true runtime - - - org.springdoc - springdoc-openapi-starter-webmvc-ui - ${springdoc.version} - - - org.springframework.boot - spring-boot-test - test - org.springframework.boot spring-boot-starter-test @@ -217,6 +210,7 @@ org.codehaus.gmaven groovy-maven-plugin + 2.1.1 validate @@ -283,9 +277,6 @@ - - maven-failsafe-plugin - org.codehaus.mojo build-helper-maven-plugin @@ -324,10 +315,32 @@ + + io.swagger.codegen.v3 + swagger-codegen-maven-plugin + 3.0.46 + + + generate-openapi-json + prepare-package + + generate + + + ${project.basedir}/api/pms-api.yaml + openapi + ${project.basedir}/api + + pms-api.json + + + + + org.openapitools openapi-generator-maven-plugin - 6.0.0 + 6.6.0 generate-openapi-html @@ -353,18 +366,32 @@ - generate-openapi-yaml - prepare-package + generate-policy-api + generate-sources generate - ${project.basedir}/api/pms-api.json - openapi-yaml - false - ${project.basedir}/api + ${project.basedir}/api/pms-api.yaml + ${project.groupId}.a1policymanagementservice.controllers.v2 + ${project.groupId}.a1policymanagementservice.controllers.api.v2 + ${project.groupId}.a1policymanagementservice.models.v2 + false + false + spring + false + false + spring-boot - pms-api.yaml + src/gen/java + true + true + true + java8 + true + true + false + true -- cgit 1.2.3-korg