summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authoregernug <gerard.nugent@est.tech>2024-04-17 10:08:38 +0100
committeregernug <gerard.nugent@est.tech>2024-04-25 12:35:33 +0100
commitb0ee038f860283d877b1590111b07016098e1777 (patch)
tree7f537d3abd9937da63b44043c56e690c57aabd35 /pom.xml
parent676227bc67596dfc01cdc82beec3022bc830fec4 (diff)
Define DMI REST interface for Datajobs
Define new REST interface : Method: POST Path: /dmi/v1/dataJob/{requestId} New Interface DMI-I-02 Issue-ID: CPS-2141 Change-Id: I46ddbc4b179fcdfc3396d4044aa201dc7f503918 Signed-off-by: egernug <gerard.nugent@est.tech>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml46
1 files changed, 44 insertions, 2 deletions
diff --git a/pom.xml b/pom.xml
index 1a21805e..8e20d8f7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,6 +1,6 @@
<!--
============LICENSE_START=======================================================
- Copyright (c) 2021-2023 Nordix Foundation.
+ Copyright (c) 2021-2024 Nordix Foundation.
Modifications Copyright (C) 2021 Bell Canada.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
@@ -315,6 +315,7 @@
<version>6.6.0</version>
<executions>
<execution>
+ <id>dmi-code-gen</id>
<goals>
<goal>generate</goal>
</goals>
@@ -338,6 +339,30 @@
</configuration>
</execution>
<execution>
+ <id>dmi-datajob-code-gen</id>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+ <inputSpec>${project.basedir}/openapi/openapi-datajob.yml</inputSpec>
+ <generatorName>spring</generatorName>
+ <generateSupportingFiles>false</generateSupportingFiles>
+ <invokerPackage>org.onap.cps.ncmp.dmi.rest.controller</invokerPackage>
+ <apiPackage>org.onap.cps.ncmp.dmi.rest.api</apiPackage>
+ <modelPackage>org.onap.cps.ncmp.dmi.model</modelPackage>
+ <generateAliasAsModel>true</generateAliasAsModel>
+ <configOptions>
+ <sourceFolder>src/gen/java</sourceFolder>
+ <dateLibrary>java11</dateLibrary>
+ <interfaceOnly>true</interfaceOnly>
+ <useTags>true</useTags>
+ <useSpringBoot3>true</useSpringBoot3>
+ <openApiNullable>false</openApiNullable>
+ <skipDefaultInterface>true</skipDefaultInterface>
+ </configOptions>
+ </configuration>
+ </execution>
+ <execution>
<id>openapi-yaml-gen</id>
<goals>
<goal>generate</goal>
@@ -346,6 +371,23 @@
<configuration>
<inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec>
<generatorName>openapi-yaml</generatorName>
+ <configOptions>
+ <outputFile>openapi/openapi.yaml</outputFile>
+ </configOptions>
+ </configuration>
+ </execution>
+ <execution>
+ <id>openapi-datajob-yaml-gen</id>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <phase>compile</phase>
+ <configuration>
+ <inputSpec>${project.basedir}/openapi/openapi-datajob.yml</inputSpec>
+ <generatorName>openapi-yaml</generatorName>
+ <configOptions>
+ <outputFile>openapi/openapi-datajob.yaml</outputFile>
+ </configOptions>
</configuration>
</execution>
</executions>
@@ -365,7 +407,7 @@
<resource>
<directory>${project.basedir}/target/generated-sources/openapi/openapi</directory>
<includes>
- <include>openapi.yaml</include>
+ <include>openapi*.yaml</include>
</includes>
</resource>
</resources>