aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/pom.xml
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2021-03-18 11:40:48 +0000
committerMichaelMorris <michael.morris@est.tech>2021-03-19 23:44:05 +0000
commite020ca3c855ec9555213abfdd89e14d72310177d (patch)
treefc8628575130e8428a23b2b9b1db7a251e1c73f8 /catalog-be/pom.xml
parentb1fc8c337d3b9750eff6e62b626c0bc3a1467a88 (diff)
Publish swagger files for SDC APIs
I have created a swagger file for each of the APIs as they are currently listed on the architecture page. Some of the files can be easily be combined if some of the APIs are combined. I have created a single file for SDCE-2 and SDCE-5 as it is not possible to seperate as they are both paritially implemented in the same class with overlapping paths I have copied the generated swagger files to the docs directory as I suspect they need to be under source control for the generation of the readthedocs page Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-3525 Change-Id: Id42412704311a573e3ebf911ad34d909c1c3f1b2
Diffstat (limited to 'catalog-be/pom.xml')
-rw-r--r--catalog-be/pom.xml62
1 files changed, 62 insertions, 0 deletions
diff --git a/catalog-be/pom.xml b/catalog-be/pom.xml
index 6a7b5a984d..2bb28627d5 100644
--- a/catalog-be/pom.xml
+++ b/catalog-be/pom.xml
@@ -1029,6 +1029,68 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>io.swagger.core.v3</groupId>
+ <artifactId>swagger-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>sdce-2-sdce-5</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>resolve</goal>
+ </goals>
+ <configuration>
+ <contextId>sdce-2-sdce-5</contextId>
+ <outputPath>${project.build.directory}/generated/swagger</outputPath>
+ <outputFileName>swagger-sdce-2-sdce-5</outputFileName>
+ <outputFormat>JSON</outputFormat>
+ <configurationFilePath>${project.basedir}/src/main/resources/swagger-config/sdce-2-sdce-5.yaml</configurationFilePath>
+ </configuration>
+ </execution>
+ <execution>
+ <id>sdce-4</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>resolve</goal>
+ </goals>
+ <configuration>
+ <contextId>sdce-4</contextId>
+ <outputPath>${project.build.directory}/generated/swagger</outputPath>
+ <outputFileName>swagger-sdce-4</outputFileName>
+ <outputFormat>JSON</outputFormat>
+ <configurationFilePath>${project.basedir}/src/main/resources/swagger-config/sdce-4.yaml</configurationFilePath>
+ </configuration>
+ </execution>
+ <execution>
+ <id>sdce-6</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>resolve</goal>
+ </goals>
+ <configuration>
+ <contextId>sdce-6</contextId>
+ <outputPath>${project.build.directory}/generated/swagger</outputPath>
+ <outputFileName>swagger-sdce-6</outputFileName>
+ <outputFormat>JSON</outputFormat>
+ <configurationFilePath>${project.basedir}/src/main/resources/swagger-config/sdce-6.yaml</configurationFilePath>
+ </configuration>
+ </execution>
+ <execution>
+ <id>sdce-7</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>resolve</goal>
+ </goals>
+ <configuration>
+ <contextId>sdce-7</contextId>
+ <outputPath>${project.build.directory}/generated/swagger</outputPath>
+ <outputFileName>swagger-sdce-7</outputFileName>
+ <outputFormat>JSON</outputFormat>
+ <configurationFilePath>${project.basedir}/src/main/resources/swagger-config/sdce-7.yaml</configurationFilePath>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<pluginManagement>