diff options
author | 2022-12-01 15:24:57 +0000 | |
---|---|---|
committer | 2022-12-06 12:53:44 +0000 | |
commit | cf5af3fd2e67b0aef402114a0f3ae263fdfc7efe (patch) | |
tree | 844e1f34ffe75187e1a76ebbfe724874f2dba188 /participant/participant-impl/participant-impl-kubernetes/pom.xml | |
parent | 7af90cd8fdabdd1c3ae79d3551980016d6b24f7e (diff) |
Replace SpringFox with SpringDoc in CLAMP
This commit:
- Remove springfox from CLAMP
- updates the commissioning, AC Element, and K8S particiapnt to use the
generated interface rather than the hard coded one
- removes swagger annotations from handwritten code
- implements SpringDoc for the <base_path>/v3/api-docs on endpoints
Issue-ID: POLICY-4404
Change-Id: I49f48bc7828cb49dab854ef9ed16a9aa377983e1
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'participant/participant-impl/participant-impl-kubernetes/pom.xml')
-rw-r--r-- | participant/participant-impl/participant-impl-kubernetes/pom.xml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/participant/participant-impl/participant-impl-kubernetes/pom.xml b/participant/participant-impl/participant-impl-kubernetes/pom.xml index 94dc415e3..a81f12927 100644 --- a/participant/participant-impl/participant-impl-kubernetes/pom.xml +++ b/participant/participant-impl/participant-impl-kubernetes/pom.xml @@ -52,6 +52,37 @@ </resources> <plugins> <plugin> + <groupId>io.swagger.codegen.v3</groupId> + <artifactId>swagger-codegen-maven-plugin</artifactId> + <version>${version.swagger.codegen.v3}</version> + <executions> + <execution> + <id>code-gen</id> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec> + <invokerPackage>org.onap.policy.clamp.acm.participant.kubernetes.controller</invokerPackage> + <apiPackage>org.onap.policy.clamp.acm.participant.kubernetes.controller.genapi</apiPackage> + <language>spring</language> + <generateModels>false</generateModels> + <generateSupportingFiles>false</generateSupportingFiles> + <importMappings> + ChartList=org.onap.policy.clamp.acm.participant.kubernetes.models.ChartList, + InstallationInfo=org.onap.policy.clamp.acm.participant.kubernetes.models.InstallationInfo + </importMappings> + <configOptions> + <sourceFolder>src/gen/java</sourceFolder> + <dateLibrary>java11</dateLibrary> + <interfaceOnly>true</interfaceOnly> + <useTags>true</useTags> + </configOptions> + </configuration> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> |