summaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor
diff options
context:
space:
mode:
authorJakobKrieg <jakob.krieg@bcmsolutions.de>2020-12-01 11:03:14 +0100
committerKAPIL SINGAL <ks220y@att.com>2020-12-01 15:42:11 +0000
commit2675aa7e04a0dc25b4e535e00cbb67e543b9c84b (patch)
tree2e8f7f640bb3105d8f960884b48dc098c83dc907 /ms/blueprintsprocessor
parentb7beaee4f6759c1c5997713901f6f5a1dfdb1d2d (diff)
CDS add swagger maven plugin
Issue-ID: CCSDK-3011 Change-Id: If83fc5668dc5dad7ec0b5499141024303a3ca372 Signed-off-by: JakobKrieg <jakob.krieg@bcmsolutions.de>
Diffstat (limited to 'ms/blueprintsprocessor')
-rwxr-xr-xms/blueprintsprocessor/application/pom.xml60
1 files changed, 60 insertions, 0 deletions
diff --git a/ms/blueprintsprocessor/application/pom.xml b/ms/blueprintsprocessor/application/pom.xml
index d4084ac54..347281f8a 100755
--- a/ms/blueprintsprocessor/application/pom.xml
+++ b/ms/blueprintsprocessor/application/pom.xml
@@ -325,6 +325,66 @@
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>com.github.kongchen</groupId>
+ <artifactId>swagger-maven-plugin</artifactId>
+ <version>3.1.8</version>
+ <configuration>
+ <apiSources>
+ <apiSource>
+ <springmvc>true</springmvc>
+ <locations>
+ <location>org.onap.ccsdk.cds.blueprintsprocessor.designer.api</location>
+ <location>org.onap.ccsdk.cds.blueprintsprocessor.resource.api</location>
+ <location>org.onap.ccsdk.cds.blueprintsprocessor.configs.api</location>
+ <location>org.onap.ccsdk.cds.blueprintsprocessor.healthapi</location>
+ </locations>
+ <schemes>
+ <scheme>http</scheme>
+ </schemes>
+ <host>localhost:8080</host>
+ <info>
+ <title>CDS Blueprint Processor API Reference</title>
+ <version>v1</version>
+ <description>
+ Shows all resources and endpoints which CDS BP processor currently provides with sample requests/responses, parameter description and other information.
+ </description>
+ <termsOfService>
+ https://www.onap.org/
+ </termsOfService>
+ <contact>
+ <email>onap-discuss@lists.onap.org</email>
+ <name>ONAP Community</name>
+ <url>https://www.onap.org/</url>
+ </contact>
+ <license>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
+ <name>Apache 2.0</name>
+ </license>
+ </info>
+ <securityDefinitions>
+ <securityDefinition>
+ <name>Basic Auth</name>
+ <type>basic</type>
+ </securityDefinition>
+ </securityDefinitions>
+ <outputFormats>json,yaml</outputFormats>
+ <swaggerDirectory>${basedir}/target/swagger</swaggerDirectory>
+ <swaggerFileName>cds-bp-api-swagger</swaggerFileName>
+ <jsonExampleValues>true</jsonExampleValues>
+ <operationIdFormat>{{className}}_{{methodName}}_{{httpMethod}}.{{packageName}}</operationIdFormat>
+ </apiSource>
+ </apiSources>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>compile</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>