summaryrefslogtreecommitdiffstats
path: root/openecomp-be
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-be')
-rw-r--r--openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/pom.xml4
-rw-r--r--openecomp-be/tools/swagger-ui/index.html2
-rw-r--r--openecomp-be/tools/swagger-ui/pom.xml4
3 files changed, 6 insertions, 4 deletions
diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/pom.xml b/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/pom.xml
index fbdbd39fe3..2da91397c7 100644
--- a/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/pom.xml
+++ b/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/pom.xml
@@ -310,8 +310,8 @@
<version>${swagger-core-mvn-plugin.version}</version>
<configuration>
<outputPath>${project.build.directory}/generated/swagger-ui</outputPath>
- <outputFileName>swagger-sdce-1</outputFileName>
- <outputFormat>JSON</outputFormat>
+ <outputFileName>openapi-sdce-1</outputFileName>
+ <outputFormat>JSONANDYAML</outputFormat>
<configurationFilePath>
${project.basedir}/src/main/resources/swagger-config.yaml
</configurationFilePath>
diff --git a/openecomp-be/tools/swagger-ui/index.html b/openecomp-be/tools/swagger-ui/index.html
index 2aefcd2fb5..5821ad2c83 100644
--- a/openecomp-be/tools/swagger-ui/index.html
+++ b/openecomp-be/tools/swagger-ui/index.html
@@ -41,7 +41,7 @@
if (window.location.pathname.indexOf('/api-docs') > 0) {
url += window.location.pathname.substring(0, window.location.pathname.indexOf('/api-docs'))
}
- url += "/api-docs/swagger-sdce-1.json";
+ url += "/api-docs/openapi-sdce-1.json";
// Begin Swagger UI call region
const ui = SwaggerUIBundle({
diff --git a/openecomp-be/tools/swagger-ui/pom.xml b/openecomp-be/tools/swagger-ui/pom.xml
index 1a66005935..c70694e629 100644
--- a/openecomp-be/tools/swagger-ui/pom.xml
+++ b/openecomp-be/tools/swagger-ui/pom.xml
@@ -89,11 +89,13 @@
<copy todir="${basedir}/target/${plugin.name}/">
<fileset dir="${rest.api.dir}/target/generated/swagger-ui/">
<include name="*.json"/>
+ <include name="*.yaml"/>
</fileset>
</copy>
<copy todir="${basedir}/target/${plugin.name}/">
- <fileset dir="${catalog-be.api.dir}/target/generated/swagger/">
+ <fileset dir="${catalog-be.api.dir}/target/generated/openapi/">
<include name="*.json"/>
+ <include name="*.yaml"/>
</fileset>
</copy>
</target>